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

Пребарај: #leapyear

当前筛选 #leapyear清除筛选
Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40512 · 09.01.2026 г., 15:04

In 46 BC, Julius Caesar added 90 extra days to the year, making it 445 days long. This was done to fix the calendar’s drift from the solar year. The previous calendar was out of sync with the seasons. Caesar introduced the Julian calendar, which included leap years every four years to keep the calendar aligned with the sun. 📅🔧 [Read more] @googlefactss #History#Calendar#LeapYear

Amazing Geography 🌍

@amazingeo · Post #34 · 11.08.2025 г., 00:12

🌍 Earth takes about 365.25 days to orbit the Sun, so every four years we add a leap day to our calendar to keep time in sync with the planet’s journey around its star. ✨ #solar⚡#orbit⚡#leapyear⚡#astronomy⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍