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

Резултати

Пронајдени 3 слични објави

Пребарај: #quahilles

当前筛选 #quahilles清除筛选
TONlines – News

@tonlines · Post #6770 · 15.04.2025 г., 07:43

⚡️Gatto | Official Channel (18+): Quahilles Brings Heavy Artillery #GTON#Quahilles The Gatto | Official Channel (18+) announces the next phase of the battle against Nessie, with Quahilles leading the charge with a powerful attack. Players are instructed to assemble a squad of three heroes - Treeffin, Crocumber, and Fox - and place them according to the plan before the deadline. Offerings can enhance the squad’s damage, but must follow specific instructions. Source: link @tonlines

TONlines – News

@tonlines · Post #6747 · 14.04.2025 г., 07:32

⚡️Gatto | Official Channel: Quahilles Battle Update #GTON#Quahilles The Gatto | Official Channel provides an update on the Quahilles battle against the Loch Ness Monster. Players are instructed to form a complete squad of three heroes by April 15 and follow specific placement strategies to maximize damage. Additional damage can be achieved through offerings, requiring the burning of $GTON. Source: link @tonlines

TONlines – News

@tonlines · Post #6730 · 12.04.2025 г., 07:36

⚡️Gatto: Quahilles III Battle Instructions #GTON#Quahilles#Nessie The Gatto channel instructs players on how to prepare their squads to fight the approaching Loch Ness monster. Players must assemble and position their heroes, Pepperaptor, Hedgehog, and Dragoad, on the field by April 13, following strict placement rules. Burning $GTON is required to enhance squad damage through offerings. Source: link @tonlines