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

Резултати

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

Пребарај: #lighthouse

当前筛选 #lighthouse清除筛选
Interesting Planet 🌍

@interesting_planet_facts · Post #1338 · 12.03.2026 г., 12:11

🌎 On the island of Märket in the Baltic Sea, the Finland-Sweden border cuts through a tiny lighthouse. The border was shifted in 1985 so both nations could share the landmark, creating a zigzag international line only 500 meters long. ✨ #borders⚡#geography⚡#lighthouse 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1095 · 03.12.2025 г., 12:11

🌎 The Flannan Isles Lighthouse mystery remains unsolved: in December 1900, three lighthouse keepers disappeared from a remote Scottish island. No bodies or clues to their fate were found, and weather records suggest a sudden storm struck the area. The lighthouse was left locked, with meals untouched and logs stopping abruptly on December 15. ✨ #mystery⚡#lighthouse⚡#Scotland 👉subscribe Interesting Planet 👉more Channels ​