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 слични објави

Пребарај: #ethiopianrestaurants

当前筛选 #ethiopianrestaurants清除筛选

"TOP 10 RESTAURANTS IN ADDIS ABABA: FROM STREET FOOD TO FINE DINING" በአዲስ አበባ ምርጥ 10 ምግብ ቤቶች፡ ከመንገድ ምግብ እስከ ጥራት ምግብ Ready to eat your way through Ethiopia? Let's feast! 🤤 በኢትዮጵያ ውስጥ በመመገብ ላይ መጓዝ ዝግጁ ነዎት? እንብላ! 🏆ADDIS ABABA'S CULINARY CROWN JEWELS: 💸BUDGET BITES ($2-8): 1️⃣MERKATO STREET FOOD | መርካቶ መንገድ ምግብ • $2-4/meal - Authentic local experience • Best injera with 15+ vegetarian dishes • Fresh juice combinations for $1 • Open 6AM-10PM, locals-only vibes • "Tastier than 5-star hotels!" - Food blogger 2️⃣ADDIS RED CROSS | አዲስ ቀይ መስቀል • $3-6/meal - Ethiopian comfort food • Famous for doro wat & kitfo • Traditional coffee ceremony included • Family-run for 40+ years • No English menu = authentic adventure! 💰MID-RANGE GEMS ($10-25): 3️⃣YESHI BUNA | የሺ ቡና • $12-18/meal - Coffee culture meets cuisine • Rooftop terrace with city views • Modern Ethiopian fusion dishes • Live traditional music evenings • Perfect for coffee ceremony + dinner combo 4️⃣KATEGNA RESTAURANT | ካተኛ ምግብ ቤት • $8-15/meal - Hidden local favorite • Spicy beef tibs that locals crave • Honey wine (tej) tastings • Garden seating under acacia trees • "Where Addis locals bring their friends" 5️⃣DASHEN TRADITIONAL | ዳሽን ባህላዊ • $10-20/meal - Cultural dining experience • Traditional Ethiopian music & dance • Shared communal eating experience • Vegetarian paradise during fasting season • Tourist-friendly but authentically Ethiopian 🍷FINE DINING ($25-50): 6️⃣LIME TREE RESTAURANT • $25-40/meal - Upscale Ethiopian-international • Wine cellar with Ethiopian & imported wines • Tasting menus featuring berbere innovations • Romantic garden setting • Where diplomats & business elite dine 7️⃣CASTELLI RESTAURANT • $30-45/meal - Italian-Ethiopian fusion • Historic building, 1950s atmosphere • Fresh pasta meets injera creativity • Extensive wine list from both countries • "Rome meets Addis Ababa perfectly!" 8️⃣HABESHA 2000 • $20-35/meal - Modern Ethiopian fine dining • Creative interpretations of classic dishes • Contemporary ambiance with traditional touches • Craft cocktails using Ethiopian spirits • Popular with young Ethiopian professionals 💎LUXURY EXPERIENCES ($40-80): 9️⃣SHERATON'S BOLE RESTAURANT • $40-60/meal - International luxury standard • Ethiopian dishes prepared by master chefs • Wine pairings with sommeliers • Panoramic city views from 18th floor • Business dinner & special occasion spot 🔟RADISSON BLU'S ZAFRAN • $50-80/meal - Michelin-level Ethiopian cuisine • Molecular gastronomy meets ancient recipes • Tasting menu: $65 (7 courses) • Chef's table experiences available • "Ethiopian cuisine elevated to art form" 🎯FOODIE PRO TIPS: • Try berbere spice levels: mild → medium → "Ethiopian hot" 🌶️ • Always wash hands before eating (provided basins) • Sharing food = sign of friendship and respect • Coffee ceremony after dinner = cultural must • Vegetarian dishes amazing during fasting seasons • Tip 10-15% at upscale places, round up at local spots ⚠️SAFETY & HYGIENE: • Look for busy local places = fresh food • Avoid raw meat unless you're adventurous • Bottled water recommended for sensitive stomachs • Street food from vendors with long queues = usually safe 🔥GOLDEN RULE: "In Addis, the best food isn't always in the fanciest restaurants - follow the locals!" Ready to taste Ethiopia from $2 street food to $80 fine dining? 🍽️ Your taste buds will thank you for this journey! 🇪🇹✨ #EthiopiFood#AddisAbaba#EthiopianCuisine#FoodieTravel#Injera#DoriWat#Berbere#EthiopianRestaurants