В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
Far-right Israeli Finance Minister Bezalel #Smotrich mourns soldiers killed in #Gaza and #Lebanon, claiming his party, "Religious Zionism," is unfairly bearing the war's burden.
#Israel#MiddleEast#War
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
🇺🇸
https://x.com/SavinoBalzano/status/1973676152741871682?t=eMAKRBwkSFtm8mqJlZoa8A&s=19
Quello che trovo davvero sconcertante, e lo dico senza ironia, è constatare come si insista nel manipolare la realtà pur di nascondere, almeno in parte, ciò che #Israele sta compiendo con la nostra complicità.
Mi addolora, davvero, questa sterile contrapposizione tra la (finta) sinistra e la (finta) destra: a indignarsi per quanto accade a #Gaza sono cittadini con le più diverse convinzioni politiche. Perché l’umanità appartiene a tutti. O quantomeno così dovrebbe essere.
Alessandro #Sallusti sostiene che i corridoi umanitari funzionino benissimo: quindi sono due anni che discutiamo del nulla? Dobbiamo forse chiedere scusa a #Netanyahu, #Smotrich e #BenGvir? Come si può sostenere simili assurdità senza provare imbarazzo? Continuo a chiedermi dove sia il limite.
#BattitoriLiberi: dal lunedì al venerdì alle 17, Radio Cusano
#USA#Israele
Secondo quanto rivelato da funzionari americani al “WSJ”, il governo americano starebbe pensando ad una totale rivoluzione nel suo approccio al conflitto israelo-palestinese e nei suoi rapporti con l’esecutivo israeliano: nello specifico, sarebbe sul tavolo l’opzione di sanzionare i due ministri Bezalel #Smotrich (#RZ|Estrema destra ebraica) e Itamar #BenGvir (#OY|Estrema destra ebraica) e quella di ribaltare la politica perseguita da Donald #Trump (#R|ECR) in Medioriente.
@OsservatorioEsteri
#Israele
Yair #Lapid (#YA|Centro): “Se pensassi che questo sia un governo di unità nazionale mi unirei, non è troppo tardi per formare il governo giusto. Non ci uniremo perché qui è stata eretta una struttura che non farà altro che aumentare il caos. #Gantz ed #Eisenkot potranno solo dare consigli. #BenGvir rimane ancora a capo del Monte del Tempio e #Smotrich di Hvara.
Chiunque abbia causato il fallimento non sarà in grado di risolverlo, i cittadini israeliani possono chiedere di fare la cosa giusta per una volta e sappiamo tutti di cosa si tratta: un governo senza estremisti con un gabinetto piccolo ed efficiente.”
@OsservatorioEsteri
#UE#Israele#Gaza
Alto Rappresentante per la Politica Estera Joseph #Borrell (#PSOE|S&D): "Inorridito dalle immagini di una scuola di Gaza colpita da un attacco israeliano, che avrebbe causato decine di vittime palestinesi. Almeno 10 scuole sono state prese di mira nelle ultime settimane. Non c'è alcuna giustificazione per questi massacri. Siamo costernati dal terribile bilancio complessivo delle vittime. Dall'inizio della guerra sono stati uccisi circa 40.000 palestinesi. Deploriamo e condanniamo l'opposizione del ministro #Smotrich contro l'interesse del popolo israeliano a un accordo. Un cessate il fuoco è l'unico modo per fermare l'uccisione di civili e garantire il rilascio degli ostaggi."
Nota: Anche #Qatar, #ArabiaSaudita, #Egitto e #Turchia hanno condannato l'attacco di Israele.
@OsservatorioEsteri
REACTIONS TO ICJ RULING ON ISRAEL'S GENOCIDE IN GAZA
#Israel was ordered by the International Court of Justice (#ICJ), or world court, on Friday to halt its military assault on the city of #Rafah in #Gaza
Here are some of the reactions so far, via #Reuters:
#Hamas official Basem #Naim:
We welcome the decision by the world court that calls on the Zionist occupation forces to end its military aggression on Rafah. We believe it is not enough since the occupation aggression across the Gaza Strip and especially in northern Gaza is just as brutal and dangerous.
We call upon the UN security council to immediately implement this demand by the world court into practical measures to compel the Zionist enemy to implement the decision.
We welcome the court’s request to allow investigation committees to reach the Gaza Strip to investigate acts of war of genocide against the Palestinian people and Hamas pledges to cooperate with investigation committees.”
#Palestinian Authority spokesperson #AbuRudeineh:
The presidency welcomes the decision issued by the International Court of Justice, which represents an international consensus on the demand to stop the all-out war on Gaza.”
#Israeli finance ministerBezalel #Smotrich:
Smotrich said demanding Israel stops the war against Hamas was tantamount to demanding that Israel decide to cease to exist. “Israeli will not agree to that,” he said in a statement.
Israeli opposition leader Yair #Lapid:
Lapid condemned Friday’s ruling by the ICJ for failing to draw a connection between its demand for an end to the fighting with a demand to return Israeli hostages held in Gaza.
Normally a fierce critic of Israeli prime inister Benjamin Netanyahu, Lapid said the court’s failure to link the two issues was “a moral collapse and a moral disaster”.
#EU foreign policy chief Josep #Borrell:
What is going to be the [EU’s] answer to the ruling of the International Court of Justice that has been issued today, what is going to be our position? We will have to choose between our support to international institutions of the rule of law or our support to Israel.”
#SouthAfrican offical Zane #Dangor:
South Africa welcomes the ruling made by the court today … This order is groundbreaking as it is the first time that explicit mention is made for Israel to halt its military action in any area of Gaza.
This is de facto calling for a ceasefire. It is ordering the major party in this conflict to end its belligerent action against the people of Palestine.”
Former Israeli #UN envoy Danny #Danon:
As ICJ judges in The Hague deliberate in comfort and return to their families, 125 hostages languish in tunnels. Israel will not cease the war until our hostages are brought back home and Hamas is completely defeated.”
++++++++++++++++