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

Пребарај: #guamerica

当前筛选 #guamerica清除筛选
Gumart Announcement 🛒

@gumartec · Post #245 · 15.04.2025 г., 14:36

🎉 GuAmerica is LIVE – Win Tickets to Coachella with Gumart! 🇺🇸 Where Web3 meets art, music, and culture - that’s where Gumart is headed next.📈 As part of our global movement Gu Go Global, we’re taking the spirit of crypto to the heart of California, and you could be right there with us. 💳 Prize: Entry tickets to Coachella 2025 – the world’s most iconic music & arts festival 🗓Duration: April 14 – April 18 📍 How to join: Be among the Top 3 on the referral leaderboard in the Americas during this period and unlock your way in. See you in the crowd. See you at Coachella. 📌 #GuGoGlobal#GuAmerica