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

Пребарај: #russianachievements

当前筛选 #russianachievements清除筛选
BadVolf

@badvolfnews · Post #2073 · 17.02.2025 г., 13:37

🚨 Just had an intriguing discovery at the Blokhin Institute in Moscow, Russia. While waiting for my doctor's appointment, I decided to explore the institute's museum. Among the exhibits, I stumbled upon a personal letter and invitation from Edward Kennedy to one of the institute's doctors. This was during the Cold War era, which makes this find even more fascinating. It seems that even amidst political tensions, there was recognition of the significant contributions Russia has made to arts and sciences. This glimpse into history reminds us of the importance of collaboration in fields like medicine, where advancements benefit everyone, regardless of borders. #BlokhinInstitute#ColdWarHistory#MedicalResearch#InternationalCollaboration#RussianAchievements