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

Резултати

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

Пребарај: #extremophiles

当前筛选 #extremophiles清除筛选
Interesting Planet 🌍

@interesting_planet_facts · Post #468 · 30.07.2025 г., 16:22

🌎 Far beneath the Pacific Ocean, "deep-sea brine pools" exist—pockets of super-salty water heavier than seawater itself. These underwater lakes create eerily defined shorelines and host bizarre microbes that thrive in conditions lethal to most ocean life. ✨ #oceanography⚡#extremophiles⚡#deepsea 👉subscribe Interesting Planet

Interesting Planet 🌍

@interesting_planet_facts · Post #868 · 06.10.2025 г., 18:11

🌎 The Movile Cave in Romania has been sealed off from the surface for over 5 million years. Its underground ecosystem relies on chemosynthetic bacteria that use hydrogen sulfide to create food, supporting unique animals like blind spiders, worms, and snails. High carbon dioxide levels and toxic gases make human exploration difficult. ✨ #caves⚡#undergroundlife⚡#extremophiles 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #462 · 29.07.2025 г., 22:22

🌎 The Pompeii worm thrives on underwater volcanoes, enduring temperatures near 80°C. Its furry back hosts heat-loving bacteria, forming a living protective shield in extreme ocean heat. ✨ #oceanlife⚡#extremophiles⚡#discovery 👉subscribe Interesting Planet