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

Пребарај: #onflow

当前筛选 #onflow清除筛选
DWF Labs Broadcast

@DWFLabs · Post #198 · 07.02.2023 г., 05:07

We're a proud sponsor of the first Flow Hackathon – a global competition from 2/21–2/26 to push the limits of #web3#onFlow. Beyond excited to be involved in the expansion of the #ecosystem and to provide an opportunity for developers to shine! 💡✨ This is what's up: 💰 $500K in prizes 🌐 Virtual & IRL events 📚 Education phase to learn more about building #onFlow ✨ Amazing speakers and judges 👨‍💻 Empowering #developers to do great things Are you ready to build awesome innovations and earn prizes for your work? Register today! 👇 https://hackathon.flow.com