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

Пребарај: #cephalopod

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

@interesting_planet_facts · Post #384 · 22.07.2025 г., 13:22

🌎 The vampire squid thrives in the ocean’s dark depths by using bioluminescent light organs to confuse predators. Its name comes from its cloak-like webbed arms, not from blood-drinking. ✨ #ocean⚡#cephalopod⚡#bioluminescence 👉subscribe Interesting Planet

Interesting Planet 🌍

@interesting_planet_facts · Post #998 · 02.11.2025 г., 18:11

🌎 The flamboyant cuttlefish flashes vivid purple, yellow, and white colors to warn predators of its toxicity. Unlike most cephalopods, it can walk across the seafloor on arm-like limbs. Its skin contains toxic compounds similar to those of poisonous pufferfish. ✨ #cuttlefish⚡#camouflage⚡#cephalopod 👉subscribe Interesting Planet 👉more Channels ​