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

Пребарај: #auc

当前筛选 #auc清除筛选
Addis Standard

@addisstandardeng · Post #21878 · 30.03.2026 г., 05:16

News: #AU chairperson urges dialogue, restraint amid rising tensions in #Somalia’s Southwest State The African Union Commission (#AUC) Chairperson, Mahmoud Ali Youssouf, has called for dialogue and restraint among Somali stakeholders amid rising tensions in the #Southwest State of Somalia. In a statement released by the AUC, the Chairperson said he is closely monitoring developments in the region and expressed concern over escalating tensions and their potential impact on the country’s stability, security, unity, and humanitarian situation. He underscored the importance of the National Consultative Council as a key platform for inclusive dialogue and consensus-building, urging all parties to make constructive use of it to resolve differences peacefully. The statement emphasized that disputes between the Federal Government and Federal Member States should be ....... https://www.facebook.com/AddisstandardEng/posts/pfbid0s5reSjXyuiniXuYjiot3AckwjHmjs6TqtDhGeL7NJRV3Bat3MHkJ8sXogGJrSzDql

Addis Standard

@addisstandardeng · Post #21661 · 10.03.2026 г., 06:20

#AU warns Gulf attacks threaten global energy and #African economies The African Union Commission (#AUC) has warned about escalating attacks on critical infrastructure in the #Persian_Gulf, cautioning that the incidents threaten global energy security and are already affecting African economies. The situation in the Gulf has worsened over the past week amid the ongoing #US-#Israeli war against #Iran, which has expanded into a broader regional conflict. In retaliation, Iran has targeted US military bases and critical infrastructure across several Gulf states. The strikes have heightened tensions and raised concerns about the stability of energy supplies and trade routes that are vital to the global economy. In a statement issued on Monday, AUC Chairperson Mahmoud Ali Youssouf highlighted the growing risks to trade and transportation in the region, noting that disruptions in ...... https://eastleighvoice.co.ke/middle-east/309166/auc-warns-gulf-attacks-threaten-global-energy-and-african-economies