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

Пребарај: #africancommunity

当前筛选 #africancommunity清除筛选

⚽️ On July 12, the Office of the Honorary Consul of South Africa in Yekaterinburg took part in the opening of a football tournament featuring 13 African teams. 🌍 🗓Playoff schedule: ▪️ Quarterfinals — July 19 (8 teams) ▪️Semifinals — July 20 (4 teams) ▪️Final — 🏆July 26 We invite all fans to come support the players and experience the vibrant spirit of African football — right in the heart of Russia! 🇷🇺⚡️ #SouthAfricaInRussia#FootballUnites#AfricaInYekaterinburg#SportsDiplomacy#AfricanCommunity#Yekaterinburg

🏆⚽️The Football Tournament Is Over! On Saturday, July 26, the football tournament among African student teams in Yekaterinburg wrapped up. 🥇 1st Place — Mali 🥈 2nd Place — Guinea 🥉 3rd Place — Senegal A representative of the Russian Ministry of Foreign Affairs in Yekaterinburg, Andrey Fedotov, took part in the award ceremony. 🌍🇿🇦 The Office of the Honorary Consul of South Africa proudly supports the African community in Yekaterinburg — united, vibrant, and full of sporting spirit! #Football#Soccer#Yekaterinburg#Mali#Guinea#Senegal#SouthAfrica#AfricaInRussia#AfricanCommunity