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

Пребарај: #lawandecology

当前筛选 #lawandecology清除筛选
Green University CA | Official

@centralasian_greenuniversity · Post #481 · 05.12.2025 г., 12:26

Law and Ecology Roundtable at Green University 🗓On December 4, 2025, Green University held a high-level Roundtable on Law and Ecology bringing together researchers from leading international institutions to discuss pressing issues at the intersection of environmental governance, ecological transition, and sustainable development. The roundtable featured four expert presentations: 🟠Pauline Couteau (Sciences Po) – introducing the role and research initiatives of Sciences Po in the field of environmental studies; 🟠Dr. Álvaro Artigas Pereira (Sciences Po) – delivering insights on “Confronting Policies to Complexity: Policy Capacity and Development in Shifting Times”; 🟠Tom Wassenaar (CIRAD) – discussing environmental risks and territorial approaches; 🟠Prof. Bénédicte Cenki (University of Montpellier) – presenting on the challenges of mineral resources and the ecological transition, and how to balance energy demands with environmental protection. 🟡The session concluded with an open discussion, allowing students and researchers to engage directly with the speakers. #GreenUniversity#LawAndEcology#ClimateAction#SustainableDevelopment ✉️[email protected] ☎️ +998 55 512 00 77 📍Location 🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube