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

Резултати

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

Пребарај: #cookingathome

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

@cookingdish · Post #625 · 26.12.2024 г., 17:04

Cream of Mushroom Soup🍄🥣 → Ingredients: 🥕 3 Carrots 🧅 3 Shallot Onions 🥔 400g Potatoes 🧄 4 Garlic Cloves 🍄 600g Mushrooms 🌿 2-3 Fresh Basil Leaves 🌶️ 1 Tsp Chili Paste 🥛 400g Heavy Cream 💧 1 cup Water 🧂 Salt/Pepper to taste 🧈 1 Tbsp Butter 🫒 Olive Oil 🌶️ 1 Chili Pepper 🔥 Smoked Paprika #CreamOfMushroomSoup#SoupRecipe#ComfortFood#HomemadeSoup#MushroomLovers#CookingAtHome @dishes

Dishes.Cooking.Food

@cookingdish · Post #615 · 17.12.2024 г., 17:19

Korean Kuksi 🍲 Ingredients: 🥩 500g Beef, thinly sliced 🍜 200g Wheat noodles 🧅 1/2 Onion, thinly sliced 🧄 2 cloves of Garlic, minced 🥒 1 Cucumber 🥗 1 Bunch of Radish 🥬 1/4 Cabbage 🍅 4 Tomatoes 🥚 4 Eggs 🌶️ Chilli powder to taste 🌿 1/2 Tsp Coriander 🧂 Salt/Pepper to taste 🫕 5 Tbsp Soy sauce 🍬 1 Tbsp Sugar 🥄 2 Tsp Sesame oil 🍋 1.5 Tsp Vinegar 🫛 1/4 cup Vegetable oil 💧 1 liter of cold Water ✨ Sesame seeds: for topping #KoreanKuksi#ColdNoodleSoup#AsianCuisine#KoreanFood#EasyRecipes#FoodLovers#FreshIngredients#CookingAtHome @dishes

Dishes.Cooking.Food

@cookingdish · Post #611 · 12.12.2024 г., 16:49

Neapolitan-Style Arugula and Prosciutto Pizza 🍕🌿🇮🇹 Pizza Dough: - 270g King Arthur '00' Pizza Flour 🌾 - 30g Whole Wheat Flour 🌾 - 3/4 (1.5g) teaspoon instant yeast or active dry yeast 🍞 - 9g Salt 🧂 - 240g Water, lukewarm (105° to 115°F) 💧 - 1 Tbsp Olive Oil 🫒 - Semola (for dusting) Topping: - Fresh Mozzarella Cheese 🧀 - Parmesan Cheese 🧀 - Tomato Sauce 🍅 - Fresh Basil 🌿 - Olive Oil 🫒 - Prosciutto 🥓 - Fresh Arugula 🌱 - Fresh Tomatoes 🍅 #NeapolitanPizza#PizzaRecipe#HomemadePizza#ItalianFood#Foodie#PizzaLovers#Arugula#Prosciutto#Mozzarella#TomatoSauce#CookingAtHome @dishes