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

Пребарај: #rehabilitation

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

@addisstandardeng · Post #21691 · 12.03.2026 г., 12:31

News: #Rehabilitation Commission claims hundreds ‘Army 70’ fighters join DDR; #Tigray security bureau pushes back #Ethiopia’s National Rehabilitation Commission said more than 500 former fighters “linked to the Tigray People’s Liberation Front’s” so-called “Army 70,” previously stationed near the #Sudanese border, have “entered” the government’s Disarmament, Demobilization, and Reintegration program (#DDR) at a temporary processing center in #Awash_Arba. The claim was met with pushback from the Tigray Security Bureau, which disputed the commission’s characterization of the fighters and their entry into the DDR process. The Bureau called the news “misleading” and said it was made “without the knowledge” of its Tigray office. In a statement, the bureau described the Commission’s claim as “a sour joke” and accused the federal government of bypassing the legal signatories of the Pretoria Peace Agreement by engaging fighters individually to join the DDR process.... Read more: https://addisstandard.com/?p=55777