TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #45 · 2 мар.

В фреймворке PyQt (и PySide тоже) часто встречается настройка чего-либо с помощью так называемых флагов. widget.setWindowFlags(Qt.Window) Взаимодействие нескольких флагов делается с помощью бинарных (или побитовых) операторов. Несколько флагов можно указать с помощью оператора "|" list_item.setFlags(Qt.ItemIsSelectable | Qt.ItemIsEnabled) исключить флаг из уже имеющегося набора можно так list_item.setFlags(list_item.flags() ^ Qt.ItemIsEnabled) Добавить новый флаг к имеющимся можно так list_item.setFlags(list_item.flags() | Qt.ItemIsEnabled) А проверка наличия делается так is_enabled = item.flags() & Qt.ItemIsEnabled > 0 Почему именно так? Всё дело в том как именно работают побитовые операторы. Но об этом в следующем посте. #qt

Hashtags

Резултати

Пронајдени 1 слични објави

Пребарај: #blockbench

当前筛选 #blockbench清除筛选
GitHub Trends

@githubtrending · Post #15206 · 09.10.2025 г., 13:00

#javascript#3d#blockbench#electron#hytale#low_poly#minecraft#pixel_art Blockbench is a free, easy-to-use program for making low-poly 3D models with pixel art textures, perfect for beginners but also packed with advanced tools for experts[1]. You can paint and edit textures right inside the program, create animations, and export your models for games, 3D printing, or sharing online—including special formats for Minecraft Java and Bedrock Edition[1][3]. The interface is modern and customizable, and you can add even more features with plugins[1]. Since Blockbench is open source, you can use, change, and share it freely, and anything you create belongs to you[1]. This makes it a powerful, flexible tool for anyone interested in 3D modeling, especially for game design and Minecraft content creation. https://github.com/JannisX11/blockbench