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

Резултати

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

Пребарај: #ethiopianhighlands

当前筛选 #ethiopianhighlands清除筛选

🏗️ **ETHIOPIA: THE NEW INVESTMENT HOTSPOT** 🏗️ **ETHIOPIA: THE NEW INVEST 💰 Ethiopia's highlands are becoming Africa's new luxury destination! International investors and wealthy individuals are building exclusive estates in the mountains. 🏔️d wealthy individuals are • Foreign billionaires building private compounds at 2,500m+ elevation • Perfect climate year-round (15-25°C) • Stunning mountain views and clean air • Privacy and security in remote highlands 🌍e building exclusive es• Chinese companies: $13+ billion in infrastructure • Turkish investors: Industrial parks and textiles • Gulf states: Agriculture and real estate • European investors: Renewable energy projects 🏭 building exclusive estates in • Grand Ethiopian Renaissance Dam (GERD) • Addis Ababa Light Rail expansion • New industrial cities and economic zones • Luxury mountain resorts and eco-lodges 📈estors and wealthy • Fastest-growing economy in Africa (pre-2020) • Strategic location connecting Africa, Middle East, Asia • Young, educated workforce • Government incentives for foreign investment 🌟 From ancient highlands to modern investment paradise! ከጥንታዊ ተራሮች ወደ ዘመናዊ የኢንቨስትመንት ገነት! 🇪🇹 #Ethiopia#ኢትዮጵያ#Investment#LuxuryRealEstate#EthiopianHighlands#Development

## 🏔️ ETHIOPIAN HIGHLANDS VS SWISS ALPS: THE MOUNTAIN SHOWDOWN ## 🏔️ የኢትዮጵያ ተራሮች VS የስዊስ አልፕስ ⛰️ Time to settle this once and for all! --- ## 🇨🇭 SWISS ALPS PROS: Pretty postcards, chocolate, fancy resorts CONS: ❌ $300+/night hotels ❌ $8 coffee ❌ Overrun with tourists ❌ Zero human history --- ## 🇪🇹 ETHIOPIAN HIGHLANDS PROS: ✅ Where humanity learned to WALK! ✅ Gelada monkeys, Ethiopian wolves ✅ UNESCO Simien Mountains ✅ $20-50/night hotels ✅ $1 coffee ceremony ✅ Cliff monasteries ✅ 3.2 million years of history *ከሰው ልጅ መነሻ ተራሮች!* --- ## 📊 HEAD-TO-HEAD HISTORY: Cheese vs HUMAN EVOLUTION ✅ WILDLIFE: Cows vs Geladas & wolves ✅ HOTEL: $300 vs $20 ✅ COFFEE: $8 vs $1 ✅ CROWDS: Packed vs Undiscovered ✅ SCORE: Ethiopia 9 - Switzerland 2🏆 --- ## 💰 VACATION COST (1 week) SWISS ALPS: $3,356 💸 ETHIOPIAN HIGHLANDS: $557 🎉 SAVINGS: $2,799 (buy a car!) --- ## 🤔 THE VERDICT SWISS ALPS: "Look at our expensive hotels!" ETHIOPIAN HIGHLANDS: "We invented WALKING." 🚶‍♂️ --- ## 🏆 WINNER: ETHIOPIAN HIGHLANDS! 🇪🇹 Why? ✅ Witnessed human evolution ✅ 20x cheaper ✅ Unique wildlife ✅ Less crowded ✅ REAL coffee ✅ Marathon legends train here ✅ Gelada monkeys > cows *Switzerland is cool. Ethiopia is LEGENDARY.* 🔥 --- VISIT SIMIEN MOUNTAINS!🇪🇹⛰️ *Why be a tourist when you can be an EXPLORER?* ✨ #SimienMountains#EthiopianHighlands#SwissAlps#VisitEthiopia#BudgetTravel#UNESCO#EthiopianPride

## ⛰️ THE ROOF OF AFRICA: WHERE EARTH TOUCHES HEAVEN ## ⛰️ የአፈሪካ ጋራ: ምድር ሰማይ የሚመሰከርበት 🌍 КОГДА ГОРЫ КАСАЮТСЯ НЕБЕС! Simien Mountains — Ethiopia's crown jewel and UNESCO World Heritage site where ancient volcanic peaks pierce the clouds at 4,500 meters! ⛰️ 🌅 THE DRAMATIC LANDSCAPE: These jagged ridges were sculpted by millions of years of volcanic fury, creating one of Earth's most breathtaking panoramas. *Эти зубчатые вершины — самый драматичный пейзаж на планете!* *እነዚህ የተበዳደሩ አጫያዎች በዓለም ውስጥ የተሳከሩ ምብጣት ምክንያቶች ነው!* Deep gorges plunge 1,500 meters below — called "the chess pieces of the gods" by locals for their dramatic, sharp pinnacles. 🐒 UNIQUE WILDLIFE: Home to the endangered Gelada baboons — the "bleeding heart" monkeys found NOWHERE else on Earth! *Самые редкие павианы в мире живут только здесь!* *በዓለም አንደ ቦታ የሚገኙ የጋላዳ ብድንዎች እዚህ ብቻ ይገኛሉ!* These gentle giants graze the highland meadows in massive troops, living peacefully at altitudes that would leave most humans breathless. 🌟 KUINDZHI'S VISION BROUGHT TO LIFE: At sunset, these mountains transform into layers of gold and shadow — like stepping into a painting by the Russian master Arkhip Kuindzhi. Light becomes sculpture, air becomes canvas, and the soul expands infinitely. *На закате горы превращаются в живую картину Куинджи!* *በሰሙን መግረብ ጋታ አያቶች የኩይንዅጂ እሳት ይሆናሉ!* This is Ethiopia. Where nature paints with light and shadows, where time stands still, and where every breath feels sacred. 📸Swipe through: Photo 1-2: Real dramatic vistas → Photo 3: Algorithmic art in Kuindzhi style! *Фото 1-2: Реальные панорамы → Фото 3: Алгоритмическое искусство!* #SimienMountains#የሲሚኤንአያቶች#Ethiopia#ኢትዮጵያ#UNESCO#Kuindzhi#AlgorithmicArt#የአልገሪዝምእሳት#EthiopianHighlands#የኢትዮጵያአያቶች#MountainMagic 🇪🇹@ethiopia