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

Резултати

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

Пребарај: #traditionalcuisine

当前筛选 #traditionalcuisine清除筛选

🔥 FROM INJERA TO INTERNATIONAL: ETHIOPIAN FLAVORS CONQUER THE WORLD 🔥 ከእንጀራ እስከ ዓለም አቀፍ: የኢትዮጵያ ጣዕሞች ዓለምን ይቆጣጠራሉ 🤯 КОГДА 3000-ЛЕТНИЕ РЕЦЕПТЫ ВСТРЕЧАЮТ СОВРЕМЕННУЮ ГАСТРОНОМИЮ! Ethiopian cuisine isn't just food - it's a FLAVOR REVOLUTION that's taking over global kitchens! 💫 🌟 THE ANCIENT FOUNDATION: 🫓 INJERA - THE ULTIMATE SUPERFOOD: - Fermented for 3 days = Natural probiotics before the world knew probiotics! - Teff grain = Gluten-free, high protein, iron-rich - Edible plate AND bread = Zero waste dining (we invented sustainability!) - UNESCO should recognize this as cultural heritage! 🌶️ BERBERE SPICE BLEND: - 16+ spices in perfect harmony - Each family has secret ratios passed down generations - More complex than any European spice blend - The flavor profile that makes food critics cry tears of joy! 🍯 COFFEE CEREMONY: - We INVENTED coffee culture (sorry, Italy!) - 3-round ritual that turns drinking coffee into meditation - Fresh roasting, grinding, brewing = The original "third wave" coffee 🚀 MODERN ETHIOPIAN GASTRONOMY RISING: 🍽️CONTEMPORARY ETHIOPIAN RESTAURANTS WORLDWIDE: - Blue Nile (London) - Ethiopian fine dining earning Michelin attention - Zoma (Washington DC) - Modern Ethiopian earning James Beard recognition - Red Sea (Multiple cities) - Upscale Ethiopian cuisine revolution - Ghenet (NYC) - Ethiopian flavors meet Manhattan sophistication 👨‍🍳 YOUNG ETHIOPIAN CHEFS INNOVATING: ✨ Molecular gastronomy meets traditional berbere ✨ Injera transformed into fine dining presentations ✨ Ancient grains in contemporary preparations ✨ Fusion cuisine that respects tradition while pushing boundaries 🔥 THE FOOD REVOLUTION: 🥘 TRADITIONAL MEETS TRENDY: - Vegan before vegan was cool (fasting traditions = plant-based mastery!) - Fermented foods trending? We've been fermenting for millennia! - Communal dining? Ethiopian meals invented "sharing plates"! - Spice tolerance? We built palates that can handle ANY heat! 🌍 GLOBAL INFLUENCE: - Ethiopian restaurants in every major city worldwide - Teff grain now sold in American health food stores - Berbere spice blends in gourmet supermarkets - Coffee shops trying to recreate our ceremony rituals 🎯 YOUNG ETHIOPIAN FOOD ENTREPRENEURS SAY: *"Our grandmothers' recipes are tomorrow's Michelin stars!"* *"የእናቶቻችን የማብሰያ መመሪያዎች የነገው ሚሽሊን ኮከቦች ናቸው!"* 💪 PLOT TWIST: While food trucks sell "fusion," Ethiopian cuisine has been perfectly fusing African, Middle Eastern, and unique flavors for thousands of years! *From ancient kitchens to modern restaurants - Ethiopian flavor never goes out of style* 🍽️🔥 #EthiopianCuisine#የኢትዮጵያምግብ#EthiopianFood#Injera#Berbere#CoffeeOrigin#TraditionalCuisine#ModernGastronomy#ኢትዮጵያላይፍ#FlavorRevolution