TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #175 · 30 окт.

В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль QtCompat (compatibility). Там не так много функций но они довольно полезны. Этот модуль содержит унификаци модуля shiboken2, функций loadUi, translate и несколько переименованных функций классов или изменённую сигнатуру аргументов и возвращаемых значений. Это единственное исключение из правила когда вам потребуется где-то изменить свой код кроме импортов и этот код не похож на обычный код PySide2. Например, в PyQt4 и PySide есть метод QHeaderView.setResizeMode Для PyQt5 и PySide2 они были благополучно переименованы в QHeaderView.setSectionResizeMode Чтобы применить этот метод следует использовать такой код from Qt import QtCompath header = self.horizontalHeader() QtCompat.QHeaderView.setSectionResizeMode(header, QtWidgets.QHeaderView.Fixed) Унификация загрузки UI файлов: # PySide2 from PySide2.QtUiTools import QUiLoader loader = QUiLoader() widget = loader.load(ui_file) # PyQt5 from PyQt5 import uic widget = uic.loadUi(ui_file) # Qt.py from Qt import QtCompat widget = QtCompat.loadUi(ui_file) Хорошо что таких моментов не много и их легко запомнить. Полный список можно посмотреть в таблице. #qt#tricks

Hashtags

Резултати

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

Пребарај: #vegancooking

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

@cookingdish · Post #558 · 24.10.2024 г., 13:35

High Protein Baked Potato 🥔💪 Ingredients: 🥔 4 large potatoes (300 g each) 🫒 Oil as desired 🧂 Pinch of salt Filling: 🥕 1 small carrot 🫑 1/2 pepper 🌱 1 spring onion 🧅 1 small red onion 🌱 200 g smoked tofu 🥛 60 ml oat cream cuisine 🧀 60 g cream cheese 🧂 1 level teaspoon salt Toppings: 🧀 Vegan scattered cheese 🥄 Soy Skyr 🌿 Thyme, rosemary, pepper, salt #HighProteinBakedPotato#VeganCooking#HealthyEats#PlantBased#VeganComfortFood#TastyTwist @dishes

Dishes.Cooking.Food

@cookingdish · Post #579 · 13.11.2024 г., 15:09

Korean Pancakes 🥞🇰🇷 Ingredients for Pancakes: 🥕 1 small carrot 🍄 4 mushrooms 🧅 1 onion 🧄 1 clove of garlic 🌶️ 1/2 bell pepper 🥬 2 pointed cabbage leaves 🥒 1/4 zucchini 🌶️ Some chili pepper For the Dough: 🌾 70 grams of flour 🌱 20 grams of lupine flour 🌽 2 tbsp cornstarch 💧 180 ml water 🧂 1/2 tsp salt 🧈 Vegetable butter or oil for frying Preparation: 1. 🥕🍄🧅 Thinly slice all the vegetables. 2. 👩‍🍳 Mix the dough ingredients and stir in the vegetables. 3. 🔥 Heat oil in a pan and fry the pancakes until golden brown. 4. 🍽️ Enjoy with soy sauce & sesame! #KoreanPancakes#VeggiePancakes#AsianRecipes#EasyMeals#VeganCooking#DeliciousAndHealthy @dishes

Dishes.Cooking.Food

@cookingdish · Post #785 · 26.03.2025 г., 14:01

High Protein Quinoa Balls in African Peanut Stew 🥣Quinoa Balls: - 150g quinoa 🍚 - 1 red onion 🧅 - 2 cloves garlic 🧄 - 2 tbsp oatmeal 🌾 - 50g soy granules 🌱 - 1 tbsp vegetable broth 🥬 - 4 tbsp cornstarch 🌽 - Salt & pepper 🧂 🍲Peanut Stew: - 2 cm ginger 🫚 - 1 chili 🌶 - 2 onions 🧅 - 2 cloves of garlic 🧄 - 1 bell pepper 🫑 - 2 carrots 🥕 - 1 bunch of spring onions 🧅 - 300 ml vegetable broth 🥣 - 200g tomato paste 🍅 - 150g peanut butter 🥜 - Fresh parsley & cilantro 🌿 - 1 tsp cumin 🌿 - 1 tsp paprika 🌶 #HighProtein#QuinoaBalls#PeanutStew#HealthyRecipe#AfricanInspired#VeganCooking#PlantBased#ComfortFood @dishes

Dishes.Cooking.Food

@cookingdish · Post #581 · 15.11.2024 г., 14:28

High Protein Quinoa Balls in African Peanut Stew 🥣Quinoa Balls: - 150g quinoa 🍚 - 1 red onion 🧅 - 2 cloves garlic 🧄 - 2 tbsp oatmeal 🌾 - 50g soy granules 🌱 - 1 tbsp vegetable broth 🥬 - 4 tbsp cornstarch 🌽 - Salt & pepper 🧂 🍲Peanut Stew: - 2 cm ginger 🫚 - 1 chili 🌶️ - 2 onions 🧅 - 2 cloves of garlic 🧄 - 1 bell pepper 🫑 - 2 carrots 🥕 - 1 bunch of spring onions 🧅 - 300 ml vegetable broth 🥣 - 200g tomato paste 🍅 - 150g peanut butter 🥜 - Fresh parsley & cilantro 🌿 - 1 tsp cumin 🌿 - 1 tsp paprika 🌶️ #HighProtein#QuinoaBalls#PeanutStew#HealthyRecipe#AfricanInspired#VeganCooking#PlantBased#ComfortFood @dishes

Dishes.Cooking.Food

@cookingdish · Post #560 · 26.10.2024 г., 13:19

🧑‍🍳🍃 Vegan Rolls Recipe 🌱 🥔 Ingredients for Rolls (10 pcs): - 🥔 2 large potatoes - 🧀 200g vegan grated cheese - 🫒 Some oil 🌿Pesto: - 🌰 50g pine nuts - 🧂 1 tsp salt - 🍅 200g dried tomatoes - 🌱 1 handful of fresh basil 🥗Topping: - 🧀 200g vegan cream cheese - 🍗 200g vegan chicken cold cuts - 🍃 Fresh spinach #VeganRecipes#PlantBased#HealthyEating#EcoFriendly#TastyRolls#HomemadePesto#MeatlessMeals#CheeseLover#VeganCooking#Foodie @dishes