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

Пребарај: #ngc300

当前筛选 #ngc300清除筛选
Universe Mysteries 🪐

@cosmomyst · Post #176 · 23.08.2025 г., 03:11

🪐 In the galaxy NGC 300, astronomers identified the black hole NGC 300 X-1 locked in a close dance with a massive Wolf-Rayet star—an extremely hot, luminous star that is rapidly shedding its outer layers. As the black hole pulls matter from its companion, powerful X-rays are released, creating a system where each orbit peels more material from the star and reveals how black holes can dramatically alter the life and fate of their stellar partners. ✨ #blackholes⚡#xrays⚡#ngc300⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​