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

Резултати

Пронајдени 2 слични објави

Пребарај: #venezuelan

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

@addisstandardeng · Post #21033 · 10.01.2026 г., 09:15

#Pope_Leo says ‘war is back in vogue’ in major address to global envoys Pope Leo XIV has said the prohibition on countries violating one another’s borders has been “completely undermined,” in an important speech to diplomats gathered in the #Vatican. The first #United_States-born pope, giving his debut “state of the world” address, expressed his concern about “escalating tensions” in the “#Caribbean Sea and the #American Pacific coast” while calling for the “will of the #Venezuelan people” to be respected, and a return to stability in the country. “War is back in vogue and a zeal for war is spreading,” Leo told ambassadors from across the globe gathered in the Vatican’s Apostolic Palace on Friday. “The principle established after the Second World War, which prohibited nations from using force to violate the borders of others, has been completely undermined.” Leo was speaking just less than a week after the...... https://edition.cnn.com/2026/01/09/europe/pope-leo-state-of-world-address-envoys-intl