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

Резултати

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

Пребарај: #tagquestions

当前筛选 #tagquestions清除筛选
English With Natives*

@sirjimmy · Post #31821 · 06.12.2025 г., 16:38

💥TAG QUESTION CHALLENGE Tag questions aren’t grammar tricks — they’re instinct. Feel the sentence first. The tag comes after. 😎 ✨Quick Examples: Nobody warned you, did they? You’ve seen this before, haven’t you? She’d never deny it, would she? 🔥Your Challenge Fill in the blanks using pure native instinct: 1. Hardly anyone noticed the mistake, ____? 2. You’d never have guessed the truth, ____? 3. I’m the last person you’d blame, ____? 4. Somebody should’ve stopped him, ____? 5. She’s been avoiding us all day, ____? 6. You wouldn’t say that in front of him, ____? 7. Let’s not complicate things, ____? And hey — if you send your answers as a voice message, that’d be perfect, wouldn’t it? If you’re stuck, text works too.😉 #TagQuestions #TeamJimmy #SirJimmy