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

Пребарај: #sinnar

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

@addisstandardeng · Post #21824 · 25.03.2026 г., 05:23

News: RSF claims capture of #Kurmuk near #Ethiopia border amid escalating tensions #Sudan’s paramilitary Rapid Support Forces (#RSF) has claimed it captured the strategic town of Kurmuk in #Blue_Nile State following intense fighting with the Sudanese Armed Forces (#SAF), according to a report by Xinhua. In a statement, the RSF said its forces, alongside the Sudan People’s Liberation Movement-North (#SPLM-N), had taken control of Kurmuk and surrounding areas after what it described as “fierce” battles. Kurmuk, located near the Ethiopian border, is considered a strategic corridor linking Blue Nile and #Sinnar states and providing access to key infrastructure, including the Al-Roseires Dam. Analysts cited by Xinhua said control of the town could shift regional dynamics and affect cross-border movements. As previously reported by Sudan Tribune, a Sudanese government official claimed that fighters linked to the RSF and SPLM-N entered Blue Nile through...... Read more: https://addisstandard.com/?p=56050