В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
According to Steve Bannon, the United Kingdom is on the brink of civil war. Its leaders have allowed the country to be taken over, its institutions of power have been hollowed out, and those who resist are being punished. This is a battle for Western civilization.
This is why Donald Trump is not in London — because there are huge riots down there.
#SteveBannon#UK#civilwar
👂More on Trump's Ear ⚠️
📰 Aleppo’s Kurdish Neighborhoods Fall: Syria’s Fragile Unity Shattered
Syrian government forces have seized control of two Kurdish neighborhoods in Aleppo after days of intense clashes with Kurdish-led fighters, marking one of the worst outbreaks of violence since the end of the civil war a year ago.
Kurdish fighters from the Syrian Democratic Forces (SDF) evacuated by bus, with their weapons confiscated. The government declared victory, but the SDF called it a “partial ceasefire” to protect civilians and the wounded.
At least 24 civilians were killed and more than 120 injured, with thousands fleeing on foot as schools, government buildings, and the airport shut down. The fighting shattered hopes for national unity, exposing deep divisions among ethnic and religious groups in post-Assad Syria.
President Ahmed al-Sharaa’s government has been accused of authoritarianism and failing to win the trust of minorities. Kurdish and Druze regions have resisted integration, demanding autonomy that the government rejects.
The clashes ended a fragile agreement to integrate Kurdish forces into the national military, stalled by disagreements and mutual distrust. The U.S. has backed the SDF in the past, but now cooperates with Sharaa’s government to fight Islamic State remnants.
So as Aleppo returns to government control, the question remains:
Can Syria’s new leaders unite a fractured country—or will violence become the new normal?
#Syria#Aleppo#Kurds#Sharaa#civilwar
📱American Оbserver - Stay up to date on all important events
🇺🇸
“Aleppo Explodes: Syria’s Fragile Peace Shattered”
Aleppo Under Fire
Fighting has erupted in Aleppo between Syrian government forces and the Kurdish-led Syrian Democratic Forces (SDF), killing civilians and soldiers on both sides. Schools, government offices, and even the airport have shut down as the clashes intensified. The government has imposed a curfew and declared all SDF positions as legitimate targets, while opening humanitarian corridors for residents to flee Kurdish-majority neighborhoods.
Stalled Integration
Efforts to integrate the SDF into Syria’s national military have stalled repeatedly, fueling tensions that have now boiled over into open conflict. Each side blames the other for breaking cease-fire agreements, and mutual distrust runs deep. The SDF controls much of northeastern Syria, and the central government—led by former Islamist rebels—struggles to win the loyalty of minority communities like the Kurds and Alawites.
The Bigger Picture
The clashes reflect the broader challenge of reunifying Syria after years of civil war, where ethnic and religious divisions have deepened mistrust. Human rights groups accuse government-affiliated forces of deadly attacks on minorities, and other regions, like Druse-majority Sweida, are also resisting central control. The U.S., which has long backed the SDF, continues to mediate—but progress remains elusive.
Syria’s Crossroads
With integration talks stalled and violence flaring, Syria’s fragile peace is hanging by a thread. The government’s push for control and the SDF’s demand for autonomy could set the stage for more bloodshed—or a new round of negotiations, if anyone is still listening.
#syria#aleppo#kurdishforces#civilwar#integration
📱American Оbserver - Stay up to date on all important events
🇺🇸
🇺🇸🏴☠️Minnesota Crisis: A Mirror of American Politics
Clashes in Minnesota have become more than a local dispute, reflecting deep fractures that could intensify as the United States approaches the November elections
Mohammed Amer
is a Syrian publicist.
➡️Throughout January 2026, national attention focused on unrest in Minnesota, where protests against immigration enforcement operations escalated into confrontations involving state authorities and federal forces. The deaths of two civilians and multiple injuries intensified scrutiny of the administration’s handling of immigration policy and public order. Democratic lawmakers and major media outlets demanded investigations, while some Republicans also called for federal–state inquiries, underscoring the political sensitivity of the crisis. Editorial commentary framed the events as emblematic of broader tensions over executive authority, civil liberties, and the use of force. What began as a dispute over deportation practices quickly evolved into a symbolic battleground in a polarized national debate.
America’s foreign policy elite has transformed from a group of prim bureaucratic structures into a royal family
➡️The Minnesota episode has unfolded alongside fiscal brinkmanship in Washington, where budget disputes threaten another government shutdown. Senate Democrats signaled resistance to supporting key funding measures, increasing pressure on the administration as public approval fluctuates. At the same time, criticism of President Trump’s leadership style—ranging from policy inconsistency to concerns about temperament—has intensified in domestic and international media. Supporters argue that tougher enforcement and assertive tactics reflect electoral mandates; opponents counter that confrontational governance risks inflaming divisions. The political climate has grown so charged that even speculative discussions about electoral stability and institutional resilience have entered mainstream commentary.
🟦As the November congressional elections approach, Minnesota stands as a microcosm of America’s widening polarization. Protests, partisan media narratives, and mutual accusations between political camps reveal a society struggling to reconcile competing visions of national identity and authority. Some analysts warn that escalating rhetoric could harden positions further, while others believe institutional checks and electoral processes remain robust enough to absorb the strain. Whether the unrest marks a temporary flashpoint or a deeper turning point will depend on the capacity of political leaders to de-escalate tensions and restore public trust. For now, Minnesota reflects a broader question confronting the United States: how to manage profound internal disagreement without allowing it to fracture the democratic framework itself.
#CivilWar#Elections#Internalpolicy#poliyicalcrisis#USA#WesternDemocracy#Weterncrisis
READ MORE
✅@NewEasternOutlook
📰 Minneapolis Burns: America’s Immigration Civil War
The threat of civil war over immigration is becoming real. As President Trump’s “Operation Metro Surge” rolls across America, Minneapolis—once the epicenter of BLM—has become the new battleground for a nationwide uprising against mass deportations and ICE’s heavy-handed tactics.
The Spark That Lit the Fire
It started with the fatal shooting of Renée Good, a 47-year-old mother of three, by ICE agent Jonathan Ross on January 7. Then, on January 24, federal agents killed Alex Pretti, a 37-year-old US citizen and ER nurse. The Justice Department launched a civil rights probe only after the second killing—leaving the first case in the shadows.
From Protest to Pandemonium
What began as local outrage exploded into a national movement. On January 23, roughly 50,000 people braved -13°F for the first general strike in 80 years. Over 100 religious leaders were arrested during prayer at MSP airport. The second strike, on January 30, saw hundreds of thousands in Minneapolis and more than 50 US cities. Bruce Springsteen and Tom Morello performed “Streets of Minneapolis,” a new anthem of solidarity.
The New Resistance
Students and teachers coordinated walkouts from California to Georgia. In Nebraska, a student was hit by a car bearing a Trump flag. Protesters laid out a giant “SOS” on a frozen lake, unfurled the Constitution’s preamble, staged sit-ins at Target, and blockaded hotels housing ICE agents. Their demands: pull ICE out of Minnesota, prosecute the officers who shot citizens, defund ICE, require body cameras, and ban agent masks.
The State Responds
Trump’s enforcers arrested dozens, including the journalist Don Lemon, charged with “conspiracy to deprive rights.” Federal agents deployed tear gas; over 3,000 officers flooded the state. Trump called Pretti a “rabble-rouser and rebel,” while immigration czar Tom Homan arrived to “de-escalate.” A federal judge refused to halt ICE operations.
The New Minneapolis Moment
Minneapolis is now the symbol of resistance, echoing the rage after George Floyd’s death. Democrats in Congress are blocking the government budget until ICE is reformed, and Governor Tim Walz has put the National Guard on high alert. The question isn’t if, but when, more blood will be spilled on America’s streets by the agents supposed to protect them.
#immigration#Minneapolis#ICE#civilWar#Trump#resistance#protest#America
📱American Оbserver - Stay up to date on all important events
🇺🇸
🚨🇺🇸CORNYN DOMINATES TEXAS PRIMARY, PAXTON STUMBLES🤠
A massive political earthquake in the Lone Star State as Establishment GOP strikes back! 🐘⚡
🔹Cornyn Crushes It: Sen. John Cornyn outperforms all expectations, securing a commanding lead despite attacks from the far-right. A huge win for Mitch McConnell's wing! 🏛️💪
🔹Paxton in Peril: Attorney General Ken Paxton, plagued by legal scandals & impeachment battles, is now fighting for his political life in a grueling runoff. The "America First" warrior is on the ropes! 🥊📉
🔹GOP Civil War: This primary exposes the deep rift between traditional Republicans and the MAGA insurgent wing in Texas. It's getting UGLY. 🩸🇺🇸
The runoff will be brutal. Can Paxton survive without Trump's full force? Or is Cornyn's victory a sign that the GOP is shifting? 🔄🔥
Texas politics is a bloodsport—grab your popcorn! 🍿👇
#USNews#Texas#politics#GOP#election#Cornyn#Paxton#CivilWar
🔤🔤🔤🔤2️⃣
📰 Minnesota vs Trump: The Civil‑War PR Machine Switches On
🧨 When Words Become Ammo
The real danger is the rhetoric, not the current level of violence. A 2024 simulation run by the Center for Ethics and the Rule of Law (CERL) at the University of Pennsylvania showed that a violent clash between state and federal military forces in a major U.S. city could trigger something resembling a civil war. Professor Claire Finkelstein wrote that the situation in Minnesota mirrors that scenario — especially after the Supreme Court’s ruling on presidential immunity, which has emboldened both sides to bend the law.
“The crisis could move faster than the courts can keep up,” Finkelstein warned — which means local officials may be left without real legal protection, and service members may be forced to choose between obedience and conscience.
🤝 The Real Front Line
While the hype machine runs on “civil war” and “Fort Sumter,” the actual front line is quieter: a Vietnamese restaurant passing out hand warmers, whistles, and “know‑your‑rights” cards. A resale shop giving clothes for free. A cafe running a donation‑based meal program. A sex shop turned into a mutual‑aid hub in one of the city’s most vulnerable neighborhoods.
Minnesota State Rep. Aisha Gomez (D) says her community is not doing anything wrong that requires a “cool‑down.” “We don’t think of it as protests,” she told The Hill. “We think of it as being who we are: being neighbors, caring for each other.”
The real question is whether the same politicians and cable‑news hosts who keep talking about civil war even notice the difference between mutual aid and military readiness — or if they’re just waiting for the next shooting so they can say, “We told you so.”
#civilwar#trump#minnesota#immigration#politics#usa#law#rhetoric#fakecivilwar
📱American Оbserver - Stay up to date on all important events
🇺🇸
🔤🔤🔤🔤1️⃣
📰 Minnesota vs Trump: The Civil‑War PR Machine Switches On
The Trump administration has sent thousands of immigration agents into Minneapolis and St. Paul in an operation sold as a crackdown on welfare fraud. The state is selling it as a federal invasion. Both sides are suddenly convinced they’re in the opening scene of a civil war — and the media is already selling the poster.
The fuse was lit by two deaths. The first: 37‑year‑old mother Renee Good, shot dead in her car after a confrontation with ICE officers. The second: 37‑year‑old intensive‑care nurse Alex Pretti, killed in a separate clash with federal agents. Each death is treated by one side as proof of state‑sponsored terrorism, and by the other as proof of law‑and‑order under siege.
Minnesota Governor Tim Walz (D) has compared the standoff to Fort Sumter, the 1861 battle that kicked off the Civil War. Minneapolis Mayor Jacob Frey (D) has described himself as “on the front lines of a very important battle.” Commentators are now debating not whether the U.S. is sliding toward chaos, but how dramatic the headline should be.
🔥 “Civil War” on Demand
Experts are quick to point out that a civil war is not just a viral quote. Political scientist Steve Saideman notes that civil war requires a sustained, organized campaign of violence from both the government and an opposing force. Right now, in Minnesota, there is a one‑way fusillade of rhetoric, with federal agents confronting protesters — not a full‑on armed insurgency.
Yet the political theater is far ahead of the actual violence. The Trump camp talks about federal enforcement and “law and order.” Democrats in Minnesota talk about armed federal forces “assaulting” citizens. Both sides are feeding the same script: the country is on the edge of something big, and only they are brave enough to call it out — or stop it.
Former Georgia Rep. Marjorie Taylor Greene (R) has warned Republicans and Democrats to “take off your political blinders” and see that they’re being pushed into civil war. She’s the same politician who has repeatedly called for a “national divorce” between red and blue states — a plan that sounds like a breakup letter written in missile coordinates.
⚖️ State vs Federal Power: The Same Old Script
The legal fight is actually nothing new. Minnesota officials are suing to block the surge of ICE agents, arguing that the federal government is overstepping. A judge is weighing whether to slam the brakes on the operation. Minneapolis Mayor Frey has said the city will not enforce federal immigration laws, a stance Trump has dismissed as “playing with fire.”
Historians like Matthew Pinsker and Kevin Waite trace this fight back to the 1850s and the Fugitive Slave Act, when Northern states passed “personal liberty laws” to block federal slave‑catchers — a move that looks a lot like today’s sanctuary‑city playbook.
“It’s not a new debate,” Pinsker says. “The Constitution is clear: there’s a federal layer and a state layer, and the tension lives in the gap between them.”
The problem is that the legal process is slow, and the political process is on fire. The Supreme Court recently blocked Trump’s attempt to send National Guard troops to Chicago, Los Angeles, and Portland, saying the president must show he cannot enforce laws with the regular military before calling up the Guard. Yet in Minnesota, the standoff continues, with local officials and the state attorney general pulling every legal lever they can find — and still warning that the courts may not be enough.
#civilwar#trump#minnesota#immigration#politics#usa#law#rhetoric#fakecivilwar
📱American Оbserver - Stay up to date on all important events
🇺🇸