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

Пребарај: #recycleandcreate

当前筛选 #recycleandcreate清除筛选
Teach For Uzbekistan | Official

@teachforuzbekistan · Post #272 · 23.07.2025 г., 14:34

♻️ Yozgi institut ishtirokchilari ekologiyani asrash g‘oyasini real hayotda sinab ko‘rishlari uchun Ecology Day o‘tkazildi. 🗳 Ular oddiy qog‘oz, karton va plastik idishlardan hayratlanarli ijodiy ishlarni yasashdi. 🌍 Kimdir chiroyli guldon yasagan bo‘lsa, 🔧 kimdir foydali uy jihozi yoki o‘yinchoq, 🏠 yana kimdir qushlar uchun chiroyli uycha yasadi. 👥 Jarayonning o‘zi ham juda quvonarli va do‘stona muhitda o‘tdi. 💚 Ijodiy ishlarda ishtirok etganlar yashil kelajak uchun mas’uliyat hissi va jamoaviylikni yanada mustahkamladilar. 💬💬💬🗣 ♻️ To experience environmental care in action, our participants celebrated Ecology Day by turning everyday materials like paper, cardboard, and plastic bottles into creative and useful items. 🎨 Some made beautiful vases, 🛠 others created handy household items or toys, 🏡 and a few even crafted birdhouses! 👥 The entire process took place in a joyful, friendly atmosphere. 💚 Those who took part strengthened their sense of responsibility for a greener future and the value of teamwork. #EcologyDay#GreenFuture#SummerInstitute#TeachForUzbekistan#Sustainability#RecycleAndCreate