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

Пребарај: #spaceweek

当前筛选 #spaceweek清除筛选
Russian House Brussels-Europe

@rushousebrussels · Post #3050 · 21.04.2026 г., 10:11

Space Week at the Russian House in Brussels The Russian House in Brussels hosted a series of events dedicated to space exploration and the 65th anniversary of the first human spaceflight — a milestone of great significance for world history and international scientific cooperation. A key highlight of the programme was the unveiling of the monument to Yuri Gagarin, symbolizing the beginning of the space era and the unifying power of humanity’s achievements. As part of the week, a ceremonial event with the participation of heads of diplomatic missions and representatives of embassies was held, reaffirming the role of the Russian House as a platform for cultural and humanitarian dialogue. A special place in the programme was given to the meeting with Andrey Borisenko, pilot-cosmonaut and Hero of the Russian Federation. Guests had a unique opportunity to learn about real space missions, ask questions, and discuss the future of space exploration. The educational programme included Days of Documentary Cinema, featuring films about humanity’s journey to the stars and the legacy of Yuri Gagarin, as well as educational initiatives such as the “Star Dictation” and participation in the international campaign Total Dictation. Particular attention was given to young audiences: creative workshops for children were organized, including space-themed art activities, assembling a model of the Vostok spacecraft, and decorative crafting sessions. The Space Week once again demonstrated the unifying power of science, culture, and education, contributing to the strengthening of humanitarian ties and the development of international dialogue. #RussianHouseBrussels#SpaceWeek#Gagarin#Borisenko#CulturalDialogue#Brussels