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

Резултати

Пронајдени 3 слични објави

Пребарај: #selfdevelopment

当前筛选 #selfdevelopment清除筛选
1 English learning materials

@englishmeta1 · Post #94 · 14.03.2022 г., 08:51

Learn to refuse! Such a skill can be useful to get away from pressure and extortion from manipulators, especially if you are a soft, compliant person and are afraid to refuse someone, even at the cost of your own comfort and peace of mind. Start with a softer option: “I don’t think”, “I won’t succeed”, “I can’t”. To begin with, it is important to understand that there is the very possibility of failure, then it will become easier. But in the end, you need to come to a firm “no” without explaining your refusal or justifying your decision to others.‌‌ *** Next post: Life Tips ♡ ㅤ ⎙ㅤ ⌲ 🔔 ˡᶦᵏᵉ ˢᵃᵛᵉ ˢʰᵃʳᵉ unmute #psychology#Selfdevelopment 📝 Requests: @Guidancee_bot ©@This_is_psychology