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

Пребарај: #massawa

当前筛选 #massawa清除筛选
Addis Standard

@addisstandardeng · Post #21489 · 22.02.2026 г., 16:34

News: #PM_Abiy says military buildup to serve as regional shield, expands training to maritime domain to secure peace from tip of #Somalia to #Massawa port Prime Minister Abiy Ahmed said the military preparations undertaken by his government are intended to serve as a pillar of support and a shield for countries in the region, announcing that training has expanded into maritime environments to help secure regional peace and combat piracy and terrorism from the tip of Somalia to Massawa port in #Eritrea. Speaking at the #Hawassa City International Stadium in the Sidama Region on 22 February 2026, Abiy said military training, previously conducted on land, mountains, and rivers, has been broadened to include maritime operations. He added that Ethiopia would work with “brotherly peoples” to eliminate maritime terrorism along the #Red_Sea corridor to ensure regional development and prosperity. Field Marshal #Berhanu Jula, Chief of General Staff of the Armed.... Read more: https://addisstandard.com/?p=55313