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

Пребарај: #bakedpotatoes

当前筛选 #bakedpotatoes清除筛选
Dishes.Cooking.Food

@cookingdish · Post #547 · 13.10.2024 г., 13:43

Baked Pumpkin Potato Recipe🥔🎃 Ingredients: 4 large potatoes (300g each) 🥔 Oil as desired 🫒 Pinch of salt 🧂 Filling: 1/2 Hokkaido pumpkin 🎃 1 handful of chopped spinach 🌱 1 small red onion 🧅 200g chickpeas, cooked 🫘 200ml oat cream cuisine 🥛 1 level teaspoon of salt 🧂 1/2 teaspoon of thyme 🌿 1/2 teaspoon of rosemary 🌿 Pinch of pepper 🌶️ Instructions: 1. Bake the potatoes until soft. 2. Meanwhile, prepare the filling by sautéing onion, pumpkin, and spinach. Add chickpeas and spices. 3. Stir in oat cream and let it simmer. 4. Once the potatoes are baked, cut them open and fill them with the pumpkin-chickpea mixture. 5. Enjoy your delicious baked pumpkin potatoes! 😋 #PumpkinRecipe#VeganDinner#BakedPotatoes#FallCooking#HealthyEats#PlantBased#ComfortFood#AutumnRecipes @dishes