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 слични објави

Пребарај: #lunareclipse

当前筛选 #lunareclipse清除筛选
Dr Sherri Tenpenny

@SherriTenpenny · Post #24334 · 03.03.2026 г., 04:22

Set your alarms early TOMORROW morning, March 3! ⏰🌕 A total lunar eclipse aka a “Blood Moon” is happening early Tuesday morning, March 3 and it’s a good one. For most of us across the U.S., the lunar show starts before sunrise with peak totality around the middle of the hour depending on your time zone. During peak, the Moon turns that deep copper red as Earth’s shadow completely covers it. No telescope needed. Just step outside, look up, and give your eyes a minute to adjust. Clouds permitting, this one will be hard to miss! Drop me your pictures if you catch it! #lunareclipse#bloodmoon 🔹👉🏻@SherriTenpenny