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

Пребарај: #savehumanity

当前筛选 #savehumanity清除筛选
JS Organization

@jsorganization · Post #1042 · 06.04.2025 г., 10:43

Gaza is being destroyed, and the Arab world is silent! Israel is raining fire on Gaza day after day.Beneath the bombs and rockets, the ground trembles, but even more, a mother’s heart shakes in fear. Children no longer ask for toys—they beg for safety.Women don’t seek adornments—they yearn for a chance to survive. And us? Most Arab leaders stay mute. Some even shake hands with this oppressor.While the Muslim nation drowns in blood, they’re lost in luxury and self-interest. But Allah sees.He hears the cries of the oppressed.One day, the tyrants will face justice—no one will escape.If we stay silent today, history will curse us tomorrow.Pray for Gaza, speak up, stand for truth. #FreePalestine🇵🇸 #StandWithGaza #StopGenocide #SaveHumanity