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

Резултати

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

Пребарај: #healthyfood

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

@cookingdish · Post #939 · 31.08.2025 г., 13:05

Burrata with Tomatoes and Cherries! 🍒🍅 Ingredients: * Red onion * Olive oil * Lemon juice * Balsamic sauce * Chilli * Cherries * Tomato * Salt * Buratta * Fresh parsley #healthyfood @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #935 · 27.08.2025 г., 13:04

Salad with Persimmon, Gorgonzola and Shrimp! 🥗🍤 Ingredients: * Persimmon * Arugula * Shrimps * Gorgonzola with truffle Sauce: * Olive oil * Lime juice * Salt * Black pepper * Honey #healthyfood @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #280 · 05.02.2024 г., 13:04

Fried Pineapple with Shrimp and Rice! 🍍 Ingredients: * A pineapple * Shrimps * 2 cloves Garlic * Rice * Soy sauce * Salt/Pepper * Olive oil * Greens for serving #healthyfood @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #277 · 31.01.2024 г., 13:22

Lavash with Spinach and Lightly Salted Salmon! 🫓🥬🥑 Ingredients: * Pita * Cream cheese * Spinach * Lightly salted salmon * Avocado * Lemon juice * Egg * Сhili pepper #healthyfood @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #257 · 23.12.2023 г., 13:37

Bowl with Mango, Avocado and Salmon! 🥭🥑🤤 Ingredients: * Mango * Avocado * Salmon * Edamame beans * Cilantro * Chilli * Olive oil * Lime juice #healthyfood @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #245 · 13.12.2023 г., 13:05

Burst of Flavor: Persimmon Carpaccio! 💥🎉 Ingredients: * 2 Persimmons * Burrata * Olive oil * Salt/Pepper * Pine nuts (optional) * Fresh basil #healthyfood @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #236 · 08.12.2023 г., 13:03

High Protein Red Cabbage Rolls! 🥬💜 Ingredients: * 1 Red cabbage * 4 cm. Ginger * 3 cloves Garlic * 2 Carrots * 2 Peppers * 2 Spring onions * 100 g. Soy granules * 50 ml. Soy sauce * Sesame * Fresh parsley * Chili flakes * Salt to taste #healthyfood @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #235 · 07.12.2023 г., 13:03

Arugula and Stracciatella Salad with Persimmon and Crab! 🥬🦀 Ingredients: * Arugula * Stracciatella * Persimmon * Crab * Pomegranate seeds For the Sauce: * Olive oil * Salt/Black pepper * Honey * Lime juice #healthyfood @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #230 · 03.12.2023 г., 15:00

Ciabatta with Stracciatella, Salmon, and Arugula! 🥪 Ingredients: * Ciabatta * Stracciatella * Cucumber * Arugula * Salmon * Avocado * Lemon juice * Mix of seeds * Sun-dried tomatoes #healthyfood @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #224 · 28.11.2023 г., 13:04

Salad with Persimmon, Gorgonzola and Shrimp! 🥗🍤 Ingredients: * Persimmon * Arugula * Shrimps * Gorgonzola with truffle Sauce: * Olive oil * Lime juice * Salt * Black pepper * Honey #healthyfood @dishes

Hashtags

ПретходнаСтраница 1 од 4Следна