В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
Weekly Recap | Addis Standard
Top stories of the week from Ethiopia and the region.
Watch the full recap.
https://youtu.be/Sm_a10BhwSA?si=1FfftVvZP-wBI7Ny
#Ethiopia#AddisStandard#EthiopiaNews#HornOfAfrica#WeeklyNews
Weekly Recap | Addis Standard
Top stories of the week from Ethiopia and the region. Watch the full recap.
#Ethiopia#AddisStandard#EthiopiaNews#HornOfAfrica#WeeklyNews
https://www.youtube.com/watch?v=OlJTzSXAltc
🎬 3 Days. 3 Regions. One Election.
As Ethiopia prepares for its 7th General Election in June 2026, Addis Standard brings you three back-to-back electoral profiles examining the regions where the stakes are highest.
📍 Monday - Oromia
📍 Tuesday - Amhara
📍 Wednesday - Tigray
From political uncertainty and ongoing conflicts…to unresolved constitutional questions and shifting power dynamics…
These regions could shape the direction of Ethiopia’s next political chapter.
📅 Monday. Tuesday. Wednesday, April 6, 7, and 8 2026.
Don’t miss Addis Standard’s Special Election Dispatch in English, Amharic and Afaan Oromoo.
#Ethiopia#EthiopiaElection#AddisStandard#Oromia#Amhara#Tigray#Election2026
From regional diplomacy to public health updates—here’s what shaped the week in East Africa.
👉 Addis Standard Weekly News Recap covers:
• Red Sea security talks involving Eritrea and Sudan
• Ethiopia’s latest Marburg update
• Major changes in Ethiopia’s media leadership
• U.S.–Somalia aid suspension
• Visa denials affecting Ethiopian athletes
• And more regional & global developments
▶️ Watch, share, and stay informed with Addis Standard.
https://www.youtube.com/watch?v=7n-nq-Dg1Ow
#WeeklyRecap#EthiopiaNews#HornOfAfrica#AddisStandard#AfricanNews
#Coming_UP: The Standard Signal |Ep. 12 – Ethiopia’s Constitutional Foundation and the Crisis of Western Tigray. Part II
Five years after the war in Tigray began, the constitutional crisis it exposed remains unresolved.
In Part II, Tsedale Lemma continues her conversation with Daniel Berhane, examining whether Ethiopia is still governed by its Constitution — or whether force has replaced law in determining territory.
If territorial disputes are settled outside constitutional order, what does that mean for Ethiopia’s federal future?
Part II premiers at: 7:30 PM tonight.
Subscribe to watch: https://www.youtube.com/@AddisStandard
#Ethiopia#WesternTigray#ConstitutionalOrder#RuleOfLaw#Federalism#Tigray#HornOfAfrica#AddisStandard
#Premiering_now: The Standard Signal | Ep.15: Ethiopia Under Pressure: Fuel Crisis, Global & Regional Instability, a Fragile Election | Jawar Mohammed
Click here to watch: https://www.youtube.com/watch?v=HexAbPk8Dkw
Ethiopia is facing mounting pressures. In Episode 15 of The Standard Signal, host Tsedale Lamma brings Jawar Mohammed to discuss the deepening fuel shortage and corruption concerns in Ethiopia, the looming fertilizer crisis and its implications for food security, and the impact of Middle East war on Ethiopia’s economy and stability.
#AddisStandard#TheStandardSignal#Ethiopia#JawarMohammed#EthiopiaPolitics#Corruption#FuelCrisis#HornOfAfrica#Tigray#Amhara#Oromia#EthiopiaElection#AfricaPolitics#EthiopiaNews#AfricanPolitics#Geopolitics
📝ANALYSIS: The Unmasking of Addis Standard: Independence or Illusion?
✍🏽By Dhuga Bilisuma | Red Nile Contributor
📅 February 16, 2026
In a detailed piece for RedNile, contributor Dhuga Bilisuma subjects Addis Standard’s recent coverage to rigorous academic scrutiny, questioning whether the outlet’s self-proclaimed “independence” withstands analytical review.
Drawing from established media theory — including the framing work of Robert Entman and agenda-setting theory — the article examines three editorial patterns from January–February 2026 that raise concerns about conflict-sensitive reporting standards in Ethiopia’s fragile post-conflict environment.
1️⃣ Territorial Framing: “Wolkait” vs. “Western Tigray”
When Prime Minister Abiy Ahmed referred to “Wolkait” during parliamentary remarks, Addis Standard’s headline substituted the term with “Western Tigray.”
📌The Critique:
Framing theory suggests such terminology shifts are not neutral. In a contested territorial dispute, choosing nomenclature different from the speaker’s own wording can signal narrative alignment — especially when competing historical and constitutional claims are involved. The report, according to Bilisuma, lacked the contextual clarification recommended by conflict-sensitive journalism standards.
2️⃣ Agenda-Setting: Selective Visibility of Protests
In late January, demonstrations reportedly took place in #Telemt, #Humera, #Wofla, #Korem, #Zata, #Dabat, #Debark, and #Dejach_Meda, with protesters calling for full implementation of the 2022 Pretoria Peace Agreement.
#AddisStandard reportedly provided no coverage of these protests.
📌The Critique:
Agenda-setting theory argues that what media omits can be as influential as what it highlights. For diaspora readers — who rely heavily on English-language reporting — such omissions may shape international perception by rendering certain grievances invisible in global discourse.
3️⃣ Post-Publication Revision: The “Maneuver” Case
In reporting remarks from the Tigray Interim Administration, the outlet initially used the military term “maneuvering” to describe troop movements.
📌The Critique:
While revisions are common in journalism, Bilisuma points to a pattern of reactive, non-transparent language adjustments. In a post-conflict setting governed by the Pretoria Agreement, terms like “maneuver,” “movement,” or “deployment” carry significant implications regarding compliance or breach.
Inconsistent transparency in edits can undermine public trust.
4️⃣ The Broader Pattern: Asymmetrical Context
The article argues that detailed historical grievances and counter-arguments are frequently added when framing federal officials. However, similar contextual depth is not consistently applied when reporting on actors associated with #TPLF leadership.
📌The Critique:
This uneven distribution of contextual scrutiny may generate cumulative narrative asymmetry — shaping reader perception without explicit editorial positioning.
🧭 The Verdict
Bilisuma stops short of alleging intentional bias. Instead, he argues that the cumulative effect of terminology choices, selective coverage, and revision practices constructs a particular political terrain for readers.
For diaspora audiences — whose understanding of events often depends on outlets like #AddisStandard — these framing dynamics carry amplified consequences.
“Media independence is not established solely through mission statements. It is demonstrated through transparent editorial standards.”
♦️Bottom Line: A must-read for anyone who consumes Ethiopian media critically. In fragile post-conflict societies, framing is never just semantics — it is politics.
📌Read the full article here:
The Unmasking of Addis Standard: Independence or Illusion?
#Ethiopia#MediaAnalysis#AddisStandard#RedNile#ConflictReporting#Framing
#Coming_UP: The Standard Signal | Ep.15: Ethiopia Under Pressure: Fuel Crisis, Global & Regional Instability, a Fragile Election | Jawar Mohammed
#TsedaleLemma speaks with #JawarMohammed about the growing challenges facing Ethiopia, from global and regional tensions to domestic instability, corruption and Ethiopia’s fragile election.
Premiers at: 7:30 PM EAT tonight.
Subscribe to watch: https://www.youtube.com/@AddisStandard
#AddisStandard#TheStandardSignal#Ethiopia#JawarMohammed#EthiopiaPolitics#Corruption#FuelCrisis#HornOfAfrica#Tigray#Amhara#Oromia#EthiopiaElection#AfricaPolitics#EthiopiaNews#AfricanPolitics#Geopolitics