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

Пребарај: #cookbook

当前筛选 #cookbook清除筛选
GitHub Trends

@githubtrending · Post #15022 · 01.08.2025 г., 14:00

#html#cookbook#cooking#django#docker#food#markdown#meal_planner#recipe#recipes#selfhosted#shopping Tandoor Recipes is a free, self-hosted app that helps you organize, plan, and share your digital recipe collection easily. You can import recipes from many websites, create meal plans, and generate shopping lists automatically. It works well on phones and tablets, supports tagging and searching recipes quickly, and lets you share and collaborate with family or friends. It also offers features like OCR to digitize paper recipes and syncs with cloud storage. Setting it up with Docker is simple, and it keeps your recipes safe and accessible in one place, making cooking and meal prep more efficient and enjoyable[1][2][3]. https://github.com/TandoorRecipes/recipes