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

Резултати

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

Пребарај: #seafoodlovers

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

@cookingdish · Post #624 · 25.12.2024 г., 18:14

Grilled Salmon Steaks 🍣🔥 Recipe Here: Ingredients: 🐟 3 Fresh Salmon steaks 🍁 1/3 cup Maple syrup 🧂 Salt/Pepper to taste 🍋 Lime zest For the sauce: 🥛 1 1/2 Yogurt (plain) 🧄 1 clove of Garlic 🍋 1/2 Lemon (juice) 🫒 Olive oil 🍈 Pomegranate 🌿 Fresh herbs #GrilledSalmon#HealthyEating#SeafoodLovers#EasyRecipes#DinnerIdeas @dishes

Dishes.Cooking.Food

@cookingdish · Post #616 · 18.12.2024 г., 16:17

Grilled Octopus with Potato 🐙🥔 Ingredients: → Potatoes: 500g. Young Potatoes (mix of red and gold) 🥔 3 Tbsp Butter 🧈 1 Tsp Garlic Salt 🧄 Fresh Dill 🌿 → Octopus: 500g. Cooked Octopus 🐙 1/2 Shallot Onion 🧅 2 Tbsp Olive Oil 🫒 2 Tbsp Red Wine Vinegar 🍷 1 Tbsp Capers 🌱 Parsley 🌿 #GrilledOctopus#SeafoodLovers#PotatoRecipe#GourmetDish#CookingWithLove @dishes

Dishes.Cooking.Food

@cookingdish · Post #603 · 04.12.2024 г., 15:15

Coconut Shrimp Recipe🦐🥥 Ingredients: - 1 pound large raw pink shrimp 🦐 - 1 cup flour 🌾 - 2 eggs 🥚 - 1 cup panko breadcrumbs 🍞 - 1 cup grated coconut (unsweetened) 🥥 - 1 teaspoon salt 🧂 - 1/2 teaspoon garlic powder 🧄 - 1/4 teaspoon cayenne pepper 🌶️ - 1/2 lime zest 🍋 - Oil for frying 🛢️ For Sauce: - 1/4 cup sweet ginger chili sauce 🌶️🍯 - 1/4 cup apricot jam 🍑 #CoconutShrimp#SeafoodLovers#EasyRecipes#ShrimpRecipe#TropicalFlavors#FoodieFavorites @dishes

Dishes.Cooking.Food

@cookingdish · Post #593 · 26.11.2024 г., 16:18

🍽️Mussels in White Wine Garlic Sauce 🍷🧄 © Ingredients: 🦪 500g Fresh mussels 🫒 Olive oil 🍷 150ml White wine 🧅 1 Shallot onion 🧈 50g Unsalted butter 🌶️ 1/2 Serrano pepper 🍅 1 Branch of cherry tomatoes 🧄 2 Cloves of garlic 🌿 Fresh parsley 🍋 1/2 Lemon zest 🧂 Salt and black pepper to taste #SeafoodLovers#MusselsRecipe#WhiteWineSauce#GarlicLovers#EasyDinner#FoodieFavorites @dishes