@teasticker · Post #9661 · 01.05.2022 г., 04:00
#Mult_Kanal_Malcevskyi#hanging#oldman#animated
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
Пребарај: #hanging
@teasticker · Post #9661 · 01.05.2022 г., 04:00
#Mult_Kanal_Malcevskyi#hanging#oldman#animated
@ZWolfDen · Post #2735 · 09.11.2023 г., 17:30
The Black Dog of the Hanging Hills is a creature of Connecticut folklore. A mythical canine spotted by travelers and hikers alike in the Hanging Hills, a sub-range of mountains found in the Metacomet Ridge, near Meriden CT. "If you meet the Black Dog once, it shall be for joy; if twice, it shall be for sorrow; and the third time shall bring death." - W. H. C. Pynchon, from The Connecticut Quarterly, 1898 My first ever print, initially sold at Furpoc 2023~! Interested in getting a copy for you walls? I promise it’s not cursed! Pick one up here: [https://ko-fi.com/s/d14872d078](https://ko-fi.com/s/d14872d078 "smartCard-inline") (No subscription required) #Black, #Dog, #Hanging, #Hills, #Print, #Halloween, #Folklore, #Urban, #Legend, #Scary, #Wolf_Dog, #Ghost, #Connecticut