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

Пребарај: #hurso

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

@addisstandardeng · Post #21275 · 02.02.2026 г., 08:49

News: #UK Foreign Secretary visits Addis Abeba, signs energy and investment cooperation deals after talks with #PM_Abiy, #FM_Gedion #British Foreign Secretary Yvette Cooper paid an official visit to #Addis_Abeba, where she held talks with Prime Minister Abiy Ahmed and Foreign Minister Gedion Timothewos, culminating in the signing of energy and investment cooperation agreements between Ethiopia and the United Kingdom. Prime Minister Abiy said his discussions with Cooper focused on key bilateral and regional issues of mutual interest. During the visit, the two sides oversaw the signing of a Memorandum of Understanding on technical cooperation in public investment and asset management under the Ethiopia Investment Advisory Facility. They also witnessed the conclusion of a joint development agreement for two major power transmission projects: the #Hurso–#Aysha 400 kV Transmission Project and the #Degehbur–#Kebridehar 132 kV Transmission Project. The projects .... Read more: https://addisstandard.com/?p=54891