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

Пребарај: #racingheritage

当前筛选 #racingheritage清除筛选
Auto Life

@revheadcrypto · Post #358 · 21.08.2024 г., 06:16

🚗✨ Celebrating 130 Years of Racing Heritage! 🎉🏁 Introducing the exclusive Mercedes-AMG GT3 Edition 130Y Motorsport! 🏆 This stunning supercar pays tribute to the historic 1894 race from Paris to Rouen, where it all began. 🇫🇷➡️🇬🇧 With a powerful 6.3L V8 engine producing 680 hp, this is the most powerful GT3 model ever from Mercedes-AMG! 💪🔥 It features cutting-edge technology, a nod to 1950s racing design, and a top speed exceeding 315 km/h! 🚀 Only 13 units will be produced, each priced at €1.03 million. 💰 Don’t miss your chance to own a piece of history! ⏳ #MercedesAMG#GT3Edition130Y#RacingHeritage#Supercar#AutomotiveExcellence#LimitedEdition#MotorsportMagic#Auto