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

Пребарај: #stuntlegend

当前筛选 #stuntlegend清除筛选

🪂🔥 Tom Cruise sets fire to the sky in South Africa — literally! In 2023, the Mission: Impossible star broke a Guinness World Record for performing 16 consecutive parachute jumps — with a twist: his main chute was on fire!🔥 Where did this madness take place? 📍South Africa’s Drakensberg mountains. Cruise jumped from a helicopter at 7,500 ft (≈2,300 m), lit his parachute on fire mid-air, then safely deployed a backup chute — 16 times in a row. 😳 Oh, and there’s more. He also did a wing-walking stunt on a biplane, and at one point couldn’t get back inside — because he was too exhausted. 🎬 All of this for Mission: Impossible – The Final Reckoning (Part 2). No green screens. No stunt doubles. Just Cruise being... Cruise. #TomCruise#MissionImpossible#StuntLegend#SouthAfrica#ParachuteJump#Drakensberg#GuinnessWorldRecord