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

Пребарај: #absa

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

@addisstandardeng · Post #21321 · 05.02.2026 г., 14:01

News: #Absa Bank links #Ethiopia market entry to further easing of banking rules Absa Group, a #Johannesburg-based multinational banking and financial services conglomerate, has said it would consider entering Ethiopia’s financial services market if the government further loosens ownership restrictions and deepens liberalisation of the banking sector, The EastAfrican reported. The #South_African lender said recent reforms in Ethiopia’s banking sector are encouraging but remain insufficient to support a long-term commercial commitment in what it described as a tightly regulated market. “We are closely following developments in Ethiopia and we think the first few necessary steps have been taken, but we would like to see more opening of the regulatory environment insofar as it relates to banking in that market,” Absa Group Chief Executive Officer Kenny Fihla told The EastAfrican during a visit to Nairobi this week. “When we are of the view that we have the.... Read more: https://addisstandard.com/?p=55031

Addis Standard

@addisstandardeng · Post #21738 · 16.03.2026 г., 15:11

News: #Kenya’s KCB Group eyes #Ethiopia entry by 2026 through acquisition of local bank Kenya’s banking giant, Kenya Commercial Bank (#KCB), says it is targeting entry into Ethiopia’s newly liberalizing banking sector before the end of 2026 and has already identified a potential local entity for acquisition. The lender has narrowed down its shortlist of Ethiopian banks to a single target it believes offers the right “cultural and strategic fit” for expansion into the market. The interest from KCB Group comes amid growing attention as Ethiopia gradually opens its banking sector to foreign participation. In February this year, #Johannesburg-based #Absa Group said it would consider entering Ethiopia’s financial services market if authorities further loosen ownership restrictions and deepen liberalization of the sector. The South African lender described recent reforms as encouraging but said they remain insufficient to support a long-term........ Read more: https://addisstandard.com/?p=55894