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

Пребарај: #adwa1896

当前筛选 #adwa1896清除筛选
Red Nile

@rednile12 · Post #11197 · 06.03.2026 г., 16:30

🎙️WEEK 18 | LIVE DISCUSSION The Spirit of Adwa & the Question of Iran Two moments—Adwa (1896) and Iran (2026)—separated by 130 years, yet tied by one question: Which side of history does a nation stand on? Does it stand for sovereignty, unity, and self-determination, as Ethiopia did at Adwa? Or for domination and imperial power? Tonight we explore how Adwa’s legacy helps us understand today’s global struggles through five principles: Unity • Sovereignty • Resistance • Stewardship • Sacrifice 📅March 6, 2026 ⏰2:00–4:00 PM (Ethiopia Time) 🎙️Host: Ethiopia First 🗣️Guest: Alexander Yohannes — Red Nile Media 🔗Join Live:https://t.me/+AAE_Pc8aWTczYTA0 #Adwa1896#SpiritOfAdwa#Ethiopia#Iran#Geopolitics#RedNileMedia