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

Пребарај: #yeshiwas

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

@addisstandardeng · Post #21371 · 11.02.2026 г., 14:05

News: #EPRP says politician #Yeshiwas Assefa arrested, calls for immediate release The #Ethiopian People’s Revolutionary Party (EPRP) has announced that politician Yeshiwas Assefa has been arrested, saying it confirmed the development through his family members. In a statement issued today, the party said Yeshiwas was taken into custody yesterday, describing the arrest as part of what it called the government’s continued crackdown on citizens engaged in peaceful political activity. “This is one of the countless acts that demonstrate the government’s ongoing suppression of citizens engaging in peaceful political activities,” the statement read. The EPRP further argued that such actions cast doubt on the credibility of the upcoming elections, which ruling party officials have repeatedly pledged will be free, fair and democratic. Instead, the party said, the current https://web.facebook.com/AddisstandardEng/posts/pfbid0haYBwZFd8QeABk6i1v9kN4LtHyVXkPGG4mFcjx4T6UPUAx1SVkJ5PCi2FpXQ74Col

Addis Standard

@addisstandardeng · Post #21376 · 12.02.2026 г., 06:36

#Ethiopia: Politician #Yeshiwas Assefa released hours after arrest Politician Yeshiwas Assefa has been released from custody hours after his arrest was confirmed by his party, the Ethiopian People’s Revolutionary Party (#EPRP). Mistresellassie Tamrat, General Secretary of EPRP, confirmed to Addis Standard that Yeshiwas was released yesterday at approximately 5:00 PM. She said the politician, who is also an EPRP election candidate, was freed after being detained yesterday. Earlier in the day, EPRP said it had verified through family members that Yeshiwas had been arrested. In a statement, the party described the arrest as “one of the countless acts demonstrating the government's ongoing suppression of citizens engaged in peaceful political activities.” Yeshiwas, who previously served as chairman of the Ethiopian Citizens for Social Justice (#EZEMA), has faced prior.... https://web.facebook.com/AddisstandardEng/posts/pfbid0joxCZicZF8EgEDFQmHdS2DJTZw56NdhZHg3pkF7p2bwbMKPTLtWMyroD9duASBtvl