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

Пребарај: #grantproject

当前筛选 #grantproject清除筛选
EKOLOG.UZ| ENG

@ekologuzenglish · Post #11363 · 28.01.2026 г., 15:59

🌿 Environmental Corruption Training Launched in Nukus As part of the social project “Enhancing the Knowledge and Capacity of Journalists, Bloggers, and Civil Society Representatives in Combating Environmental Corruption”, implemented by the “Ekolog” Public Association, the latest training session was held in Nukus city. This project is carried out with a grant from the Public Fund for Supporting Civil Society Institutions under the Oliy Majlis of the Republic of Uzbekistan. 📍 The training took place in the meeting hall of the CSO House in Nukus. 👩‍🏫 Trainers included Nargis Qosimova, Director of the “Ekolog” Public Association, and Feruzbek Sayfullayev, the organization’s press secretary. 🗣 During the training, participants discussed key topics, including: — “What is environmental corruption?” — “How does it develop?” — “The links between environmental problems in Uzbekistan and corruption” The sessions were interactive, giving participants practical knowledge on how to identify and report environmental corruption, as well as understanding the role of media and civil society in combating it. ☘️ Follow the latest environmental news on our page: @ekologuz. 💬 Send your suggestions and feedback via @eklguz_bot! ☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot Instagram | Facebook | Twitter | Sayt | Youtube. #Ekolog#EnvironmentalCorruption #Nukus#CivilSociety#Journalists #Bloggers#Environment#GrantProject