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

Пребарај: #jigjiga

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

@addisstandardeng · Post #21596 · 03.03.2026 г., 15:51

Memorial park honoring prominent #Somali anti-colonial leader Sayyid Mohammed Abdullah Hassan inaugurated in #Jigjiga A new memorial park honoring Sayyid Mohammed Abdullah Hassan, the early 20th century Somali scholar, poet and anti-colonial military leader, has been officially inaugurated in Jigjiga, capital of #Ethiopia’s Somali Regional State. Known in Somali as Maxamed Cabdulle Xasan, Sayyid Mohammed Abdullah Hassan is know to have founded and led the Dervish movement, which waged armed resistance against #British, #Italian and Ethiopian colonial expansion in the Somali Peninsula. While widely revered by many Somalis as a symbol of anti-colonial struggle, he was pejoratively labeled the “Mad Mullah” by the British Empire. In 1917, the Ottoman Empire recognized him as the “Emir of the Somali People.” Regional President Mustafa Muhummed presided over the ribbon-..... https://web.facebook.com/AddisstandardEng/posts/pfbid035zhG5D71mJR7UdFHybuQqaDPAcU8msaQNqQShDRQ5NYGVkbYXYFHbQGW62n97vmrl

Addis Standard

@addisstandardeng · Post #21260 · 31.01.2026 г., 08:11

News: PM Abiy receives #Djibouti and #Somalia presidents amid shifting regional security alignments Prime Minister #Abiy_Ahmed on Saturday received President of Djibouti Ismail Omar Guelleh and President of Somalia Hassan Sheikh Mohamud at #Jigjiga Airport, the Ministry of Foreign Affairs said, against the backdrop of intensifying diplomatic and security realignments in the Horn of Africa and the #Red_Sea region. The brief statement by the Ministry, issued on 31 January, did not provide details on the purpose or agenda of the leaders’ arrival in Jigjiga. The visit comes three weeks after Abiy traveled to Djibouti on 11 January for talks with President Guelleh and a tour of the Port of #Doraleh, following #Egypt’s signing of cooperation agreements with Djibouti on port development, logistics, and renewable energy. At the time, Abiy said discussions focused on ... https://www.facebook.com/AddisstandardEng/posts/pfbid02btcBVYhoVm2sSaWhGDni6vmXgSSePTnv598gAea8DcrwpE4QBC7vA24HoQQh8kYKl