@QuietWorld · Post #8358 · 07.02.2024 г., 06:29
Problems are chances for learning. #shortquote#life#selfreminder#motivation#ponderlog @quietworld🦋
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
Пребарај: #ponderlog
@QuietWorld · Post #8358 · 07.02.2024 г., 06:29
Problems are chances for learning. #shortquote#life#selfreminder#motivation#ponderlog @quietworld🦋
@QuietWorld · Post #7644 · 19.10.2020 г., 02:38
Have you ever heard of Memory Palace Technique? – a technique in studying that helps you remember what you learn better and faster? Well, I'm using that technique, but not in studying; but in reminding myself of gratitude and encouraging positive self affirmation with crystals. One thing for sure, ever since I get myself involved in crystals (since July to be precised), I'm coping with my self-esteem, motivation & anxiety, better. Interested? Check out Ponderlog for more 😘 #ponderlog#crystallovers#grootcrystal#meditation#selfhealing#crystalhealing#crystalmeditation#memory#reminder#mindbodyspirit