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

Пребарај: #amitytashkent

当前筛选 #amitytashkent清除筛选
Amity University Tashkent

@amityuniversitytashkent · Post #5138 · 06.11.2025 г., 15:10

#photoreport 😃✨Graduation Vibes at Amity University Tashkent! ✨🎓 On November 6, we proudly celebrated the Graduation Ceremony of the Class of 2025 — a day full of joy, pride, and unforgettable memories! 😍 🎶The event kicked off with the National Anthem of Uzbekistan, setting a proud tone for the celebration. Inspiring speeches followed from Mr. Rustam Karimjonov, Deputy Minister of Digital Technologies of Uzbekistan, and Mr. Amol Chauhan, Senior Vice President of Amity University. 👏 They applauded the dedication and achievements of our graduates and encouraged them to shape the future with passion, creativity, and purpose. 💫 #AmityTashkent#Graduation2025#ProudMoment#AmityFamily 🇺🇿O'zbek tilida 😜Telegram😂Facebook😀Instagram😅Youtube😃Linkedin

Amity University Tashkent

@amityuniversitytashkent · Post #5071 · 25.10.2025 г., 04:21

😀 Heartfelt Congratulations to Dr. Ashok K. Chauhan 🌟 Today, the team of Amity University Tashkent proudly extends its warmest congratulations to Dr. Ashok K. Chauhan, the visionary Founder President of Amity Education Group. Your dedication, wisdom, and lifelong mission to transform education have built a legacy that continues to inspire millions of students across the world. Under your exceptional leadership, Amity has become a global symbol of knowledge, innovation, and human values. Your belief that “Each student must be a success story” resonates deeply with our purpose here in Tashkent and guides us to nurture future leaders with passion and integrity. 💫 We wish you endless energy, good health, and continued success in your noble journey of shaping minds and empowering generations. With deepest respect and admiration, Team of Amity University Tashkent 🇺🇿 #AmityUniversity#AmityTashkent#DrAshokKChauhan#FounderPresident#AmityEducationGroup#GlobalEducation#Leadership#SuccessStory#AmitySpirit#ProudToBeAmity 😜Telegram😂Facebook😀Instagram😅Youtube😃Linkedin