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

Пребарај: #dinknesh

当前筛选 #dinknesh清除筛选

## 🦴 LUCY: MEETING HUMANITY'S 3.2 MILLION YEAR OLD GRANDMOTHER ## 🦴 ሉሲ - የሰው ዘር እናት 🌍 Where human history began - literally! In Addis Ababa lies a treasure that connects every person on Earth - Lucy (Dinknesh), the 3.2 million year old fossil that rewrote human history! 💫 ## 🏛️ NATIONAL MUSEUM OF ETHIOPIA 📍LOCATION: King George VI Street, Addis Ababa 🕐HOURS: Tuesday-Sunday, 8:30 AM - 5:30 PM (Closed Mondays) 💵ENTRY FEE: - Foreigners: 100 ETB (~$1.80) - Ethiopians: 10 ETB - Photography: +50 ETB 📸PRO TIP: Visit weekday mornings (9-11 AM) for fewer crowds! ## 🦴 LUCY - DINKNESH (ድንቅነሽ) *"You are wonderful" in Amharic* ✨DISCOVERED: November 24, 1974, Afar Region ✨AGE: 3.2 million years old ✨SPECIES: Australopithecus afarensis ✨SIGNIFICANCE: 40% complete - most complete early human ancestor ever found! ✨HEIGHT: 1.1 meters - small but mighty! ## 🌟 WHY LUCY CHANGED EVERYTHING Lucy proved our ancestors walked upright BEFORE developing large brains! She literally rewrote anthropology textbooks! 📚 ## 🏛️ MUSEUM HIGHLIGHTS ✨ Lucy's iconic skeleton display ✨ Ancient royal crowns and thrones ✨ Emperor Haile Selassie's throne ✨ Traditional Orthodox Christian art ✨ Artifacts spanning 3 million years ## 💡 HOW TO GET THERE 📍 Taxi from Meskel Square: 15-20 min, ~150-200 ETB 📍 Walking from Piazza: 25 minutes 📍 Blue taxi: 10 ETB (ask for "National Museum") ## 🌍 LUCY'S STORY 🇷🇺 Soviet paleontologists collaborated with Ethiopian researchers in 1970s-80s, helping establish Ethiopia's paleontological research! 🌎 Lucy traveled to USA (2007-2013) where 3 million people visited! She safely returned home to Ethiopia! 🇪🇹 ## 🌟 FOR YOUNG ETHIOPIANS This is YOUR heritage! Lucy proves human history STARTED in Ethiopia! Let this inspire you to: ✨ Study paleontology & archaeology ✨ Become museum professionals ✨ Share Ethiopia's story globally ## 💫 THE MESSAGE Ethiopia isn't just beautiful landscapes - it's where HUMANITY began! Every person on Earth can trace ancestry back to Ethiopia! --- Visit Lucy. Know your heritage. Share your pride!🇪🇹❤️ *Where humanity's journey began, Ethiopia's future shines brightest!* ✨ #LucyEthiopia#ሉሲ#NationalMuseumEthiopia#AddisAbaba#CradleOfHumanity#EthiopianHeritage#Dinknesh#VisitEthiopia#EthiopianPride