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

Пребарај: #zarathustra

当前筛选 #zarathustra清除筛选
Aesthetica

@Aetatesolis · Post #3962 · 28.02.2025 г., 22:15

🏛Nietzsche's The Last Man "The earth hath then become small, and on it there hoppeth the last man who maketh everything small. His species is ineradicable like that of the ground-flea; the last man liveth longest." - Nietzsche Nietzsche wrote about what he called "The Last Man". The Last Man wants everyone to be the same, to have the same, and to say the same thing. The Last Man wants to feel confident that everything is known and understood and is being handled correctly. The Last Man finds reassurance in collective consensus, which he values more highly than truth or excellence. The Last Man is a flat line - incapable of awe or passion or the creation of values. #nietzsche #zarathustra *Picture: Starttheworld AETATESOLIS