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

Пребарај: #naturalisation

当前筛选 #naturalisation清除筛选
NIDO Russia (НИДО)

@nido_russia · Post #1675 · 28.06.2024 г., 15:14

The Chairman of the Investigative Committee of the Russian Federation, Alexander Bastrykin, stated that more than 30 thousand migrants who recently received Russian citizenship and did not register for military service were "caught" in the country, about 10 thousand of them were sent to the special operation zone. Along with citizenship, according to him, they received "not only rights, but also a constitutional obligation to protect the country that accepted them." “Comrades, digging trenches and creating fortifications requires really good working hands. Today they are joining the ranks of our rear units that are building these fortifications.” he said. Migrants seeking citizenship must bear this in mind. Subscribe: @nido_russia https://t.me/nido_russia/1675 Sources: TASS, Yugopolis #citizenship#naturalisation#naturalization#Russia#Ukriane#svo