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

Пребарај: #healthyboundaries

当前筛选 #healthyboundaries清除筛选
Bloom Org

@bloomorg_uz · Post #39 · 06.05.2025 г., 15:29

#LetHerBloom #HealthyBoundaries 🕊Setting healthy boundaries: Why they matter and how to start? At Bloom, we believe that healthy boundaries are the foundation of any respectful and supportive community. ✨In today’s post, we’ll cover: • What healthy boundaries are • The different types • Why they matter • And how to start setting them with clarity and confidence ✍️ A reminder Putting your boundaries, self-respect, and emotional well-being first isn’t selfish — it’s how you stay honest with yourself and others. You are your first responsibility. 🤩 Just like a flower needs sunlight, water, and good soil to grow, you need care, space, and respect to thrive. Start with yourself— and everything else gets stronger too Let Her Bloom 🌸 🚀Telegram|📷Instagram