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

Пребарај: #niss

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

@addisstandardeng · Post #21055 · 13.01.2026 г., 09:57

News: #Ethiopia intelligence chief visits #Mogadishu amid regional tensions, delivers message from PM Abiy to Somali president Ethiopia’s National Intelligence and Security Service (#NISS) Director General Redwan Hussein paid an unannounced visit to Mogadishu on Tuesday, where he delivered a message from Prime Minister Abiy Ahmed to Somali President Hassan Sheikh Mohamud, amid heightened diplomatic tensions in the Horn of Africa. According to a report by Garowe Online, Redwan met President Mohamud at the presidential palace, Villa Somalia, shortly after arriving in the Somali capital. The contents of the message were not disclosed, and neither the Ethiopian nor Somali governments have issued official statements on the outcome of the meeting. During the visit, Redwan also held talks with Mahad Salad, Director of Somalia’s National Intelligence and Security Agency (NISA),.... https://web.facebook.com/AddisstandardEng/posts/pfbid0Am5bcKZNkxtiRcj5srKd2QLnUYs8BVxGQmvrFKKxcgLdm6rTJV9B9Mm6zku4xtUTl

Addis Standard

@addisstandardeng · Post #22051 · 18.04.2026 г., 06:45

News: Ethiopia Media Authority board reviews progress of digital overhaul, institutional reforms The Board of Directors of the Ethiopian Media Authority (#EMA) has reviewed progress on a series of institutional reforms and digital modernization efforts aimed at strengthening the #Ethiopia’s media regulatory system. The review session was led by #Redwan_Hussein, Director General of the National Intelligence and Security Service (#NISS) and Chairman of the Board of the Ethiopian Media Authority, who assessed the implementation of the Authority’s ongoing 100-day plan, launched in January 2026. During the session, board members examined reports outlining the Authority’s push to integrate modern digital technologies into its regulatory framework. A key presentation focused on infrastructure development underway in partnership with the Ethiopian Artificial Intelligence Institute, aimed at enhancing the efficiency and effectiveness of Read more: https://addisstandard.com/?p=56542