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

Резултати

Пронајдени 2 слични објави

Пребарај: #nucleartest

当前筛选 #nucleartest清除筛选
Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40475 · 04.01.2026 г., 11:00

The Vela Incident happened in 1979 when a U.S. satellite detected a double flash of light near the Indian Ocean. This flash is believed to be from a nuclear test explosion, but no country officially claimed it. Some think it was a secret nuclear bomb test by South Africa and Israel. The event remains a mystery because no clear proof was found. 🌍💥🔍 [Read more] @googlefactss#VelaIncident#NuclearTest#Mystery

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40602 · 29.01.2026 г., 05:02

On January 29, 1996, French President Jacques Chirac announced the end of France’s nuclear tests in the South Pacific, saying "France now has a reliable nuclear weapon". No more tests will be done in the future.. 🌍⚛️ [Read more] @googlefactss #France#NuclearTest#JacquesChirac#History#Weapons