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

Резултати

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

Пребарај: #bluenile

当前筛选 #bluenile清除筛选

🌊 **ETHIOPIA: WHERE THE NILE BEGINS ITS 6,000KM JOURNEY** 💫 *The Blue Nile Falls - Source of Ancient Civilizations* From Ethiopia's highland plateau thunders one of Africa's most spectacular waterfalls - Tis Issat, "Smoke of Fire." Here begins the Blue Nile's epic 6,000km journey to the Mediterranean, carrying 85% of the Nile's waters that built Egyptian civilization. **The Power Source:** 💧 85% of Nile waters originate in Ethiopian highlands 🏔️ Lake Tana source - Africa's highest major lake ⚡ 150m cascade creates mist visible for miles 🌈 Permanent rainbows dance in the spray 💎 $15 billion dam project controls Africa's water future **Tourism Impact:** • Blue Nile expeditions: $2,000-5,000 per trek • UNESCO consideration for World Heritage status • Remote location limits visitors to under 10,000 annually Without Ethiopia's highlands, there would be no Egypt, no pyramids, no ancient Nile civilization. #BlueNile#EthiopiaWater#NileSource

🌊 ETHIOPIA: AFRICA'S WATER TOWER ኢትዮጵያ፡ የአፍሪካ የውሃ ማማ ЭФИОПИЯ: ВОДОНАПОРНАЯ БАШНЯ АФРИКИ Where legends begin - where life flows! 💙 ━━━━━━━━━━━━━━━━ 💙 LAKE TANA (ጣና ሀይቅ) - SOURCE OF THE NILE This is where Africa's greatest river is born: 🌊THE BLUE NILE: • Ethiopia provides 85% of the Nile's water! • 3,600 km² of pristine water • Flows 1,450 km from Tana to Sudan • "አባይ ወንዝ" (Abay) - Mother of Rivers 🏝️37 ISLAND MONASTERIES: • Some over 800 years old • Ancient manuscripts preserved • Traditional papyrus boats (tankwa) still used • Living history on water "The Blue Nile carries Ethiopia's gift to Africa and the world"🌍💙 ━━━━━━━━━━━━━━━━ 🏞️ GREAT RIFT VALLEY LAKES የሪፍት ሸለቆ ሀይቆች Nature's masterpieces: 🌅LAKE LANGANO: • Only swimmable rift lake! • Black volcanic beaches • Resort paradise 🦩LAKE ABIJATA & SHALA: • Thousands of pink flamingos • Alkaline waters = unique ecosystem • National Park protection • Photographers' dream 💚LAKE ZIWAY: • Thriving fishing communities • 300+ bird species • Fresh tilapia straight from water 🌋LAKE CHAMO: • "Crocodile market" - hundreds sunbathing! • Giant Nile crocodiles (6+ meters!) • Hippo pods & boat safaris Africa's Great Rift Valley creates magic in Ethiopia!✨ ━━━━━━━━━━━━━━━━ 💧 THE WATER TOWER OF AFRICA 🌍THE NUMBERS: • 12 major river basins • 11 lakes (8 in Rift Valley) • 122 billion m³ annual water resources • 85% of Nile water from Ethiopia • Water source for 11 African countries "ውሃችን የአፍሪካ ህይወት ነው" (Our water is Africa's life) ━━━━━━━━━━━━━━━━ 🌱 PROTECTING THE SOURCE Conservation efforts: ✅ Reforestation (billions of trees!) ✅ Lake protection zones ✅ Sustainable fishing ✅ Community conservation ✅ Research programs Preserving water = preserving life for all Africa💚 ━━━━━━━━━━━━━━━━ 🎒 EXPERIENCE ETHIOPIA'S WATERS Must-visit: 🚣LAKE TANA: • Island monastery tours • Traditional tankwa boats • Blue Nile Falls nearby • Coffee ceremony on shore ☕ 🏖️RIFT VALLEY CIRCUIT: • Beach resorts at Langano • Flamingo watching at Abijata • Crocodile tours at Chamo • Bird watching paradise 📸BLUE NILE FALLS: • "Tis Issat" (ጥስ እሰት) - "Water that Smokes" • 400m wide in rainy season • Rainbow mist all day • One of Africa's most spectacular waterfalls ━━━━━━━━━━━━━━━━ 🌊 WHY THIS MATTERS FOR ETHIOPIA: 💧 Water security for 120+ million 🌾 Agriculture & food production ⚡ Hydropower generation 🎣 Fishing community livelihoods FOR AFRICA: 🌍 Life source for Egypt, Sudan, South Sudan 💚 Regional water cooperation 🤝 Shared prosperity FOR THE WORLD: 🌱 Sustainable water management model 🦩 Biodiversity conservation 📚 Ancient wisdom meets modern stewardship ━━━━━━━━━━━━━━━━ 💙 FUN FACTS: 🤯 Ancient Egyptians called Ethiopia "Land of Gods"! 🤯 Lake Tana at 1,788m altitude - "highland sea" 🤯 Blue Nile's name from black sediment that looks blue 🤯 Some monasteries have 1300s manuscripts! 🤯 Rift Valley = tectonic plates separating! 🤯 Flamingos migrate in thousands - pink clouds! ━━━━━━━━━━━━━━━━ 🌊 FROM SOURCE TO SEA Ethiopia's water journey: Lake Tana → Blue Nile → Sudan → Egypt → Mediterranean 6,650 km sustaining 300+ million people "From Ethiopia's highlands - life flows to the world"🌍💙 ━━━━━━━━━━━━━━━━ NEXT:⚡ How Ethiopia turns water into POWER! ━━━━━━━━━━━━━━━━ 🌍 ETHIOPIA | ЭФИОПИЯ | ኢትዮጵያ 📱 Join us: @ethiopia telegram #EthiopiaWater#LakeTana#BlueNile#RiftValley#SourceOfTheNile#EthiopianLakes#AfricaWater#NileRiver