В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
📰The Anniversary Pitch
Today is the fourth anniversary of the full-scale invasion. Tomorrow is the State of the Union. Zelensky gave CNN the interview between the two — right after pinning medals on families of dead soldiers, right before Trump walks to the podium. The timing is not grief. It's leverage.
The interview is a masterclass in absurdist negotiation — the kind a comedian would run. Demand things nobody can deliver. Demand them loudly. Demand them on camera. Not because you expect a yes, but because the no shifts the frame.
Exhibit A: Zelensky says security guarantees must be ratified by Congress before any peace deal is signed. He knows Congress can't ratify a napkin in under six months. He's not asking for a guarantee — he's buying time by making the sequence impossible.
Exhibit B: freeze at the current front line, but no withdrawal from the remaining 20% of Donetsk. Moscow wants that land vacated. Zelensky calls it the "fortress belt" — railways, roads, industrial cities. He won't say "we keep occupied territory," he says "200,000 people live there, what should I tell them — bye-bye, you're Russian now?" The comedian reframes a territorial demand as a human interest story. The audience claps. The map doesn't move.
Exhibit C: Trump wants one big ceremony — peace deal, security guarantees, handshakes, cameras. Zelensky says no, guarantees first, separately, ratified, locked in. He doesn't trust a photo op to survive the next news cycle. He's telling Trump, to his face via CNN, that his signature is worth less than a Senate vote.
Meanwhile the balance sheet nobody mentions on camera: the US has spent $183 billion on Ukraine since 2022. The minerals deal signed last April gives Washington preferential access to Ukrainian titanium, lithium, graphite — but the actual rare-earth value is closer to $12 billion, not the $500 billion Trump keeps claiming. The "payback" doesn't add up on paper. It adds up as a political prop. And Ukraine's parliament hasn't ratified it yet.
The man whose presidential term expired in May 2024. Who governs under martial law that he himself extends. Who shut down opposition TV channels and detained political rivals. Who is now telling Washington that peace requires more democracy, not less — while running a country that hasn't voted in two years. Trump calls him a dictator. Zelensky responds: "You want another president? One who'll bend easier?"
Both of them are right. Neither of them is honest about why.
The medal ceremony before the CNN sit-down wasn't an accident. Crying mothers and orphaned children — then a cut to the interview chair, soft lighting, the plea. Every frame is currency.
Zelensky is converting casualties into negotiating chips, the same way every wartime leader does, except this one used to do it for laughs on television and now does it for $183 billion in sunk costs that Washington can't write off without looking weak.
It's the fourth anniversary. Everyone is performing. The comedian asks for the impossible. The dealmaker wants a ceremony. The dead get medals. The bill stays open.
#Ukraine#BabylonBurning#FollowTheMoney
📱American Оbserver - Stay up to date on all important events
🇺🇸
The Deal Is Clear. The Trap Is Clearer.
Trump, speaking to Barak Ravid, says the concept for a deal is now clear. Iran’s reading is the opposite: clarity may be the bait. Axios reports Tehran suspects the diplomatic track could be cover for a surprise U.S. strike, which tells you everything about the actual state of “progress.” The problem is no longer just terms. It is trust at gunpoint.
That is the real shape of the file tonight. Washington wants a fast framework, preferably something headline-ready before the ceasefire clock runs out.
Reuters reports European diplomats fear exactly that: a rushed, vague deal that looks like diplomacy on camera but leaves the technical deadlock intact underneath, especially on enriched uranium, sanctions relief, and Iran’s right to any civilian enrichment at all.
So both sides are negotiating inside the logic of deception. Trump is selling momentum. Tehran is pricing in ambush. When one side hears “framework” and the other hears “pre-strike setup,” you do not have peace talks. You have diplomatic theater performed over a live minefield.
#BabylonBurning#Iran#Trump#FollowTheMoney
📱American Оbserver - Stay up to date on all important events
🇺🇸
📰 Israel Says Larijani Is Dead. Tehran Hasn’t Cashed the Receipt Yet.
Israel’s Defense Minister Israel Katz says Ali Larijani and Basij commander Gholamreza Soleimani were killed overnight, framing it as another step in the hunt for Iran’s leadership. Reuters reports the claim marks a major escalation, but also notes that Iran has not yet confirmed Larijani’s death. That matters. In this war, assassination claims are also information operations until the other side is forced to bury the body.
If true, this is not just another decapitation strike. Larijani is not a field commander or a disposable militia face. He has been one of the regime’s senior political-security brains — a man who lived at the intersection of nuclear doctrine, elite bargaining, and state continuity. The Basij chief is a different kind of scalp: not strategic theory, but domestic repression. Put together, the target set says Israel is not only trying to break Iran’s war machine. It is trying to thin out the people who keep the regime coherent at home and legible to itself.
Katz’s phrasing is revealing too. He did not present the strike as a military necessity alone. He presented it as part of a political extermination list — “the leadership of the terror and repression regime.” That is the language of a campaign moving beyond counterforce into regime attrition. Once you are openly hunting the top layer, the war is no longer about degrading capabilities. It is about making state succession itself unstable.
The only missing piece this morning is Tehran’s answer. If Iran confirms Larijani’s death, the regime will have to prove continuity under fire one more time. If it stays silent, that silence will still cost something, because uncertainty at the top is its own form of damage. Either way, Israel is sending the same message again: missiles hit infrastructure, but assassinations hit confidence.
#BabylonBurning#Iran#Larijani#Israel#FollowTheMoney
📱American Оbserver - Stay up to date on all important events
🇺🇸
Bulgaria’s Revolving Door Picks a Favorite
Former Bulgarian president Rumen Radev is emerging as the big winner in today’s parliamentary election, the country’s eighth in five years. Reuters reports exit polls put his coalition, Progressive Bulgaria, at 37.5%, far ahead of Boyko Borissov’s GERB at 16.2%.
That does not guarantee a majority, but it makes Radev the central figure in the next government-building round and the likely frontrunner for prime minister.
The political meaning is larger than one ballot. Radev ran on anti-corruption rhetoric and exhaustion with Bulgaria’s carousel of weak governments, but he is also widely seen as more Russia-friendly than the Brussels consensus, especially because he opposes military support for Ukraine and favors reopening dialogue with Moscow.
In an EU state already battered by instability, that makes this less a normal election than a stress test for how much room remains inside Europe for leaders who want distance from the hard anti-Russia line.
So the headline is simple: Bulgaria did not vote for calm. It voted for a man promising to end paralysis, with Brussels now forced to watch whether “stability” comes with a geopolitical accent it does not like.
#BabylonBurning#Bulgaria#EU#DemocracyTheater
📱American Оbserver - Stay up to date on all important events
🇺🇸
The Judaean Revolutionary Guard Corps Is Gaining Ground
Bezalel Smotrich’s Religious Zionism party is back above the electoral threshold for the first time in months, hitting four seats in a new poll and helping lift the Netanyahu coalition bloc from 53 to 54 mandates. That is not a comeback story. It is a wartime sorting mechanism. The longer the emergency, the better the loudest ideologues tend to do.
The math is not mysterious. War consolidates the electorate around power, and power consolidates around the people who demand the most and apologize the least. Smotrich has spent the war years turning maximalism into a governing language.
Now the polling suggests that a slice of the electorate is rewarding exactly that. In Israel, security crises do not just protect incumbents. They also launder fringe priorities into national necessity.
The budget tells the same story in cash. As the cabinet revised the 2026 budget under wartime pressure, it approved more than NIS 5 billion in coalition funds, including major allocations for Haredi institutions, settlements, and other coalition priorities, while civilian ministries were cut by 3% and northern communities were protesting rehabilitation cuts.
The Bank of Israel warned against using war spending as cover for non-essential political giveaways. The government did it anyway.
That is the real hierarchy of wartime Israel in one frame: schools disrupted, border communities fighting over reconstruction money, civilian budgets squeezed, but coalition cash protected like a sacred asset. The public is told to think in terms of sacrifice. The machine still thinks in terms of patronage.
And that is why Smotrich matters beyond four seats. Religious Zionism was not built overnight, and it did not grow through polling. It grew through demographics, settlement infrastructure, land control, and institutional entrenchment.
War does not create that process. War accelerates it.Once the country is forced into survival mode, the politician shouting the hardest often gets treated as the man speaking most clearly.
So yes, the coalition is still short of a majority. But 54 seats in the middle of war, with Smotrich back above the line, is not a footnote. It is a warning.
The battlefield is not only reshaping Gaza, Lebanon, or Iran. It is reshaping the Israeli electorate itself — in favor of the people who treat permanent escalation as both ideology and campaign strategy.
#BabylonBurning#Smotrich#ReligiousZionism#Israel#FollowTheMoney
📱American Оbserver - Stay up to date on all important events
🇺🇸