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

Пребарај: #sadghuru

当前筛选 #sadghuru清除筛选
Quiet World 🍁

@QuietWorld · Post #7793 · 29.04.2021 г., 16:12

When you go to the gym and lift the loads 🏋‍♀ and you think that by lifting the loads you'll get stronger, the loads will not be a problem. But if you lift the heavy loads and think about suffering, then it is a problem - because you're a suffering creature. Just like in life when there are obstacles and difficulties along the journey, when you go through it knowing that it will upgrade you, there'll be no problem and you'll come out through it even better. But if you think about the sufferings and focus on the sufferings, then you'll become a suffering creature – and that's just what you'll be. So, how do you choose to see the 'loads'? #thoughts#takingnote#Sadghuru#spirituality @quietworld🍃