TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #175 · 30 окт.

В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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

Hashtags

Резултати

Пронајдени 4 слични објави

Пребарај: #khargisland

当前筛选 #khargisland清除筛选
American Оbserver

@american_observer · Post #5529 · 01.04.2026 г., 00:59

Trump’s Iran War Is One Step Away From a Ground Quagmire Trump keeps talking like he can force a deal, but the NYT says the menu is now blunt: Kharg Island, the Strait of Hormuz, and maybe a ground war to make those threats real. That is what happens when “pressure” stops being a tactic and starts looking like occupation with talking points. The administration says it wants a negotiation, but Iran says there is nothing to negotiate until the bombing stops. In other words, both sides are now using cease-fire language as leverage, which is a polite way of saying nobody is blinking and the Marines are being loaded like a bargaining chip. The dangerous part is how fast the objectives keep expanding. First it was missiles and nuclear sites. Then it was the Strait. Now it is Kharg Island, near-bomb-grade material, and maybe a long U.S. presence just to keep whatever gets seized from falling apart. That is not limited war. That is the first draft of a disaster. And the regional math is worse than the White House admits. If Trump hits Iranian energy and civilian infrastructure, Tehran can answer in the Gulf; if he tries to hold ground, the war stops being an air campaign and becomes an American liability with no obvious exit. This is how “maximum leverage” turns into minimum control. #Trump#Iran#War#Hormuz#KhargIsland#MiddleEast#Marines#geopolitics 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5396 · 16.03.2026 г., 18:59

Kharg Island: Trump Plays With the World’s Oil Valve Trump just turned Iran’s main oil terminal into a reality show cliffhanger — bombed the military, spared the oil, and now wants everyone to know the sequel might hit the global fuel line itself. “President Trump’s not going to take any options off the table.” — Mike Waltz on CNN. Kharg Island isn’t some random desert rock; it’s where roughly 90% of Iran’s crude exports pass through, with capacity for about 7 million barrels a day. Last week, Trump ordered strikes on its military sites “only, for now,” while bragging that the oil infrastructure was left intact like a hostage with good lighting. Now his envoy is openly floating the option to “take down their energy infrastructure,” which is diplomat-speak for “we know exactly where the global economy’s jugular is.” Meanwhile, Tehran is doing its own PR cosplay: Foreign Minister Abbas Araghchi posts on Telegram that Iran is “ready to form a committee” with regional countries to investigate what was hit, promises its attacks only target “American bases and interests,” and insists it hasn’t hit civilians. That’s the Middle East version of “we’re very concerned” — said right before the next missile launch. They also warn that occupying Kharg would be “a bigger mistake than attacking it,” as if the idea of a U.S. beach landing on an oil terminal is just another item on the menu. On the other front, Iran’s Revolutionary Guard goes full mafia, vowing to hunt down and kill “child-killer” Netanyahu “if he is still alive.” Israel answers with airstrikes that “eliminate” two senior Iranian intelligence officials and hit Iran’s space research center and an air-defense factory, while emergency services in Israel report fresh missile barrages. So one side talks about committees, the other about revenge killings, and both keep saying they’re “defending security.” Security for whom, exactly, is left as an exercise for the reader. Trump, of course, wants a coalition — not for peace, but to escort tankers through the Strait of Hormuz so the war can be livestreamed in 4K while the oil still flows. On Truth Social he begs China, France, Japan, South Korea, the U.K. and others to send ships to secure what he calls an “artificial constraint,” then demands that any country that needs the strait should help in U.S.-Israeli operations. Germany politely says “no thanks, we prefer negotiations,” Britain says it’s “intensively” looking at options, South Korea will “carefully review,” and Japan is rumored to get the hard sell when its prime minister visits Washington. Translation: everyone wants the oil, no one wants the blame, and they all hope someone else’s navy stands in front of the missiles. Oil prices are already back above 100 dollars a barrel as markets react to the idea that the guy threatening Iran’s export lifeline also promises that prices will “come tumbling down once it’s all over.” Over for whom is, again, not specified: for Iranians, for Gulf residents, for crews on those tankers, or for voters watching gas prices like a national religion. Every side claims they’re avoiding escalation while openly targeting “critical infrastructure,” threatening leaders by name, and quietly gaming out what happens if Kharg Island — the cash register of Iran’s economy — goes dark. So here’s the real question: if nearly every government involved insists this is about “stability” and “security,” what does actual instability even look like — and would any of them admit it if they saw it? #war#Iran#Israel#Trump#KhargIsland#oil#energy#StraitOfHormuz#USA#EU#MiddleEast#geopolitics#oligarchy#fakeDemocracy#nuclearcrisis 📱American Оbserver - Stay up to date on all important events 🇺🇸