В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
Which Ethiopia Is Being Praised? Judicial Independence, Armed Conflict, and the Rule of Law in Contemporary Ethiopia. Read more.
https://borkena.com/2026/03/10/which-ethiopia-is-being-praised-judicial-independence-armed-conflict-and-the-rule-of-law-in-contemporary-ethiopia/#Ethiopia#politics#conflict#Justice#ruleoflaw
🔴 Да, потребовалось шесть лет нашей постоянной борьбы, чтобы снять запрет на въезд в Польшу, наложенный на меня по политическим причинам как на "угрозу национальной безопасности". Это было сделано правящим в то время правительством "Закона и справедливости" на основании секретного заключения Агентства внутренней безопасности. Теперь мне наконец-то разрешили вернуться в Польшу.
🔴 Да, партия "Право и справедливость" определенно знает, как злоупотреблять властью и довести вас до финансовой изоляции, даже если вы получили несколько положительных судебных решений. В течение последних 6 лет польское Управление по делам иностранцев и Агентство внутренней безопасности (#ABW) сохраняло запрет, несмотря на 6 судебных вердиктов (!), признавших его необоснованным и безосновательным.
🔴 Да, FATF и Еврокомиссия расценили подобные случаи финансовой изоляции и злоупотребления законами о ПОД/ФТ как "непредвиденные последствия". Это не так: это было намеренное, скоординированное злоупотребление законами о ПОД/ФТ со стороны правящего в то время правительства "Закон и справедливость", режима Казахстана и других авторитарных режимов для транснациональных репрессий против ODF как правозащитной организации и меня как ее лидера.
🔴 Да, когда партия "Право и справедливость"/PiS была у власти, ABW подготовила секретное досье, основанное на якобы имеющихся "доказательствах" того, что мое пребывание в качестве иностранца на территории Польши "угрожает государственной безопасности". Сегодня ABW - освободившись от политического влияния PiS - официально признает, что таких доказательств против меня не существует. Я считаю крайне важным рассекретить досье, основанное на предполагаемых "доказательствах" против меня, чтобы показать, как режимы злоупотребляют мерами безопасности, пользуясь отсутствием ответственности/ средств правовой защиты в законах о ПОД/ФТ.
🔴 Да, после окончательного решения суда, который потребовал от Управления по делам иностранцев в Польше исключить меня из черного списка, мы получили официальное подтверждение, в котором говорится, что я могу въехать в страну. По словам адвокатов и правозащитников, работающих с иностранцами, это был первый случай, когда суд в Польше выдал такое четкое распоряжение, когда речь идет о государственной безопасности.
🔴 Нет, партия "Право и справедливость" (#PiS) больше не у власти. Но это не значит, что проблемы Фонда "Открытый диалог", нашей команды и членов нашей семьи остались в прошлом. 7-летние политически мотивированные налоговые проверки, направленные против ODF и нашей компании, разрушили наш бизнес, а уголовное дело против Бартоша Крамека, как и многих других жертв политических репрессий, продолжается.
🔴 Да, даже с потерей власти система, построенная министрами права и юстиции Мариушем Каминским и Мацеем Васиком, продолжает жить, отравляя жизнь угнетенных в течение последних 7 лет, и требует полного демонтажа. В то же время виновные до сих пор не привлечены к ответственности за попытку уничтожить наш фонд в отместку за защиту #RuleOfLaw в Польше - неслыханное ранее злоупотребление в ЕС.
Именно поэтому нам по-прежнему нужна ваша поддержка. 🧡
"In the '818 Flowing Procession' case, HK's Court of Final Appeal rejects appeals by Jimmy Lai, Lee Cheuk-yan, Wu Chi-wai, and others for 'participating in a gathering,' sparking controversy over alleged damage to assembly rights. Former HK Governor Patten criticizes the ruling's injustice. Int'l concern mounts over unfair trials in HK. Lord Patterson comments: 'This unjust verdict is worsened by Lord Neuberger's involvement.' HK gov't condemns Patten's 'malicious defamation.' #HongKong#RuleOfLaw#JusticeSystem"
Hong Kong: un libro bianco per la sicurezza nazionale e la stabilità a lungo termine
Pechino ha pubblicato un nuovo libro bianco dal titolo “Hong Kong: salvaguardare la sicurezza nazionale della Cina nel quadro di ‘Un Paese, Due Sistemi’”. Un documento chiaro, tempestivo e di fondamentale importanza.
John Lee, Capo dell’Esecutivo della RAS di Hong Kong, ha sottolineato tre punti chiave:
1️⃣ La difesa della sicurezza nazionale non si ferma mai;
2️⃣ La sicurezza nazionale è competenza delle autorità centrali;
3️⃣ Solo con un alto livello di sicurezza possiamo garantire uno sviluppo di qualità.
⚖️ Il libro bianco arriva a pochi giorni dalla sentenza nel caso di Jimmy Lai, condannato a 20 anni per aver danneggiato gravemente gli interessi del Paese e della Regione. Una sentenza giusta, che dimostra che nessuno è al di sopra della legge.
Oltre 12.000 parole per ripercorrere il cammino di Hong Kong nella difesa della sicurezza nazionale, chiarire fraintendimenti e ribadire un principio: nessuna forza estera o interna potrà compromettere la sovranità della Cina.
Un messaggio chiaro anche alla comunità internazionale: Hong Kong è parte della Cina, e la sua sicurezza è affare esclusivamente cinese.
Sicurezza di alto livello per uno sviluppo di alta qualità. Questa è la strada.
#HongKong#UnPaeseDueSistemi#SicurezzaNazionale#Cina#RuleOfLaw
https://www.marx21.it/internazionale/la-cina-pubblica-un-libro-bianco-sulla-tutela-della-sicurezza-nazionale-nella-ras-di-hong-kong/
🚨 Lawlessness or rule of law? A zoo volunteer’s home attacked in Yangiyul
The conflict between animal rights defenders and the animal control service has escalated into open confrontation. According to volunteers, the situation has already gone beyond legal boundaries and is infringing on fundamental civil rights.
Animal welfare activists Asiya Abuzyárova and Svetlana Velichko reported that about 30 dogs disappeared from the territory of a municipal improvement enterprise. After attempts to return the animals, pressure reportedly began: a complaint was filed with the police, a volunteer was attacked, her phone was broken, and activists were allegedly harassed.
❗️ The most serious incident was the forced entry into a private home.
According to reports, municipal workers used a ladder to break a window and enter Asiya Abuzyárova’s house, forcibly removing the animals inside. When the homeowner resisted, her phone was destroyed and her hand was injured.
⚖️ According to the legislation of Uzbekistan:
🔹 The home is inviolable — entry without the residents’ consent is allowed only on legal grounds or by court order.
🔹 Private property is protected by the state — damage to property and unlawful seizure are prohibited.
🔹 Any actions by officials must have legal grounds and be properly documented.
This may constitute unlawful entry into a residence, abuse of authority, and violation of citizens’ rights.
📢 Key questions arise:
✔️ On what legal basis were the animals seized?
✔️ Who authorized the entry into the home?
✔️ Why are reports of property damage and injuries being ignored?
The law must apply equally to everyone — both citizens and officials. The situation requires a transparent investigation and a legal assessment of the actions of all parties.
#Yangiyul#civilrights#animalprotection#ruleoflaw
☘️ Follow the latest environmental news on @ekologuz. Send your suggestions and feedback via @eklguz_bot
12 февраль куни Инсон ҳуқуқлари бўйича Ўзбекистон Республикаси Миллий марказида БМТнинг Ўзбошимчалик билан ҳибсга олишлар бўйича ишчи гуруҳи ваколатига бағишланган семинар ўтказилди. Тадбирда халқаро стандартлар ва миллий амалиётни такомиллаштириш масалалари муҳокама қилинди.
#InsonHuquqlari#BMT#Uzbekistan#HumanRights#RuleOfLaw
📱www.nhrc.uz📱Telegram📱Facebook📱Twitter📱YouTube
The sentencing of former legislator Lam Cheuk-ting and 6 others in the 7.21 Yuen Long incident has sparked international attention. Videos widely available online show Lam and others being attacked during the incident, raising questions about the interpretation of evidence in the trial. Many have expressed concerns that actions of self-defense and efforts to protect others were mischaracterized, leading to charges of rioting.
Critics argue that the case reflects a broader effort to align the narrative with a predetermined scenario. This has drawn calls from international communities urging for transparency, justice, and the protection of fundamental human rights.
#YuenLong721#RuleOfLaw#HumanRights
前立法會議員林卓廷與另外六人在7.21元朗事件中被判暴動罪,引發國際關注及爭議。網上廣泛流傳的影片顯示,林卓廷及其他人在事件中遭受襲擊,令外界對審訊中證據的解讀產生疑問。不少聲音質疑,自衛及保護他人的行為被曲解,最終導致暴動罪的指控。
有評論指出,此案件反映了更廣泛的企圖,將事件情節配合既定敘事。此案件引發國際社會對透明度、公正性及基本人權的呼籲。
#元朗721
The recent arrests under Hong Kong's national security law serve as a reminder that no one is safe from the reach of Article 23. The apprehensions, including prominent activist Chow Hang-tung, instill fear and raise concerns about freedom of expression and the rule of law. The use of the law to target individuals and suppress dissent has a chilling effect on society. It underscores the need for continued vigilance in protecting fundamental rights and preserving the autonomy of Hong Kong. #Article23#NationalSecurityLaw#HongKong#FreedomOfExpression#RuleOfLaw
https://hongkongfp.com/2024/05/28/breaking-6-arrested-under-hong-kongs-new-security-law/
“Terror Against Noncitizens”: When Trump’s Deportation Machine Meets a Fed-Up Judge
A federal judge in California just called Trump’s immigration policy what immigrant communities have been calling it for years: “terror.” U.S. District Judge Sunshine Sykes accused the administration of “terrorizing” migrants, “recklessly” violating the law, and even “extending its violence on its own citizens” by linking the crackdown to two fatal shootings in Minnesota.
The core fight is over mandatory detention. Under previous administrations, undocumented people with no criminal record generally had a shot at a bond hearing while their cases crawled through immigration court. Trump’s team shut that door, cutting off hearings and forcing thousands to file individual habeas petitions in federal court just to get a judge to look at their detention. More than 20,000 such cases have been filed since he took office. Judges keep granting release — and then catching the government ignoring, delaying, or creatively “misunderstanding” their orders.
Sykes had already ruled in November and December that Trump’s blanket detention policy violated federal law and extended her order nationwide. The administration kept denying hearings anyway. In her new decision, she ordered DHS to notify eligible detainees they may qualify for bond and to give them access to a phone and a lawyer within an hour. She also vacated an immigration court ruling the White House was using as cover to continue the policy.
She isn’t alone. A judge in Minnesota just held a Trump lawyer in contempt for failing to return IDs to a migrant who’d already been ordered released, and a New Jersey judge demanded the administration explain why it missed court‑ordered deadlines in a dozen bond cases since December. “Judicial orders should never be violated,” one wrote — a sentence that shouldn’t need to exist in a functioning separation of powers.
The administration’s answer? Homeland Security insists the Supreme Court has repeatedly backed its view of mandatory detention and says ICE “adheres to all court decisions until it ultimately gets them shot down by the highest court in the land.” Translation: we follow lower‑court orders only long enough to get them overturned, and if we don’t, well, you can always file another lawsuit.
So on paper this is about bond hearings and statutes. In practice, it’s about an executive branch testing how far it can push the courts, how much fear it can generate, and how many people it can keep locked up by default — until a judge finally uses the word everyone else has been avoiding.
#immigration#Trump#courts#detention#ruleOfLaw#fakeDemocracy
📱American Оbserver - Stay up to date on all important events
🇺🇸
@RusEmbMalta Press release
🛑The “Register of Damage” and the So-Called Claims Commission: A Dangerous Legal Mirage
The Russian Federation expresses serious concern over the ongoing attempts to promote the so-called “Register of Damage” and the related International Claims Commission for Ukraine (ICC) – initiatives that openly contradict international law and threaten to undermine the very foundations of the global legal order.
📌 As the Russian Foreign Ministry has repeatedly stressed, these structures are not genuine legal mechanisms, but politically motivated constructs designed to fabricate financial claims against Russia and to create informational justification for the illegal seizure of sovereign Russian assets.
⚖️Pseudolegal Tools Disguised as Justice
According to the official statement of the Russian Foreign Ministry (26 September 2025), the proposed Claims Commission – currently being pushed through the Council of Europe – is intended to:
• legitimize politically motivated accusations,
• artificially calculate “compensation,”
• and provide cover for the confiscation of Russian assets frozen in the West.
Such actions constitute gross violations of international law and amount to nothing less than state-sponsored expropriation.
💰A Risky Scheme for Those Who Join
The European Commission’s attempts to dress these actions up as a “reparations mechanism” have already alarmed a number of EU member states. Even senior European officials have openly warned that these plans expose participating countries to massive legal, financial and reputational risks.
The danger is obvious:
any state that associates itself with these mechanisms becomes a direct party to a hostile act and assumes serious exposure to future legal and economic consequences.
🌍An Appeal to Responsible States
We call on all responsible members of the international community – not to allow themselves to be drawn into this politically charged and legally void project.
This campaign is not about justice.
It is about expanding geopolitical pressure, prolonging the conflict, and sabotaging any genuine diplomatic settlement.
Those who value international law must not lend legitimacy to instruments that openly violate it.
________
✋ The Russian Federation firmly urges governments to refrain from joining or endorsing the “Register of Damage” and the so-called International Claims Commission.
📍 Participation in these initiatives does not serve peace, law, or stability – it only deepens global fragmentation and legal chaos.
________
#InternationalLaw#RegisterOfDamage#ClaimsCommission#RuleOfLaw#StopTheScam
December 9 -International Anti-Corruption Day
⚠️Corruption slows progress.
❗️Integrity, transparency, and the rule of law make societies stronger.
✅Only together can we fight corruption effectively.
#AntiCorruptionDay#Integrity#Transparency#RuleOfLaw
#StopCorruption#Compliance#GoodGovernance
✉️[email protected]
☎️ +998 55 512 00 77
📍Location
🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube
#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