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

Резултати

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

Пребарај: #trumpism

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

@american_observer · Post #5422 · 19.03.2026 г., 20:59

Trump sold “Trumpism” as a mix of swagger, risk-taking, and cheap gas. Iran has just stress-tested all three — and they’re cracking. ​ CNN’s analysis is blunt: Tehran’s resistance has turned what Trump promised as a fast, punishing war into a grinding stalemate, with the Strait of Hormuz effectively shut, oil and gas prices soaring, and the White House scrambling after a scenario its own planners treated as “worst case” but never really prepared for. He was blindsided by the severity of Iran’s retaliation across the Gulf and by the closure of a choke point every serious analyst had flagged from day one. His attempt to turn Hormuz into a loyalty exam for allies has stalled; NATO and key partners refused to send ships into a war they weren’t consulted on, leaving Trump ranting that he never really needed them anyway. At home, the bill is arriving. Oil has blown past 100 dollars, gas has jumped almost a dollar a gallon in weeks, markets are shaking, and a war that’s already unpopular with a majority of voters is now fuelling an internal revolt — including the resignation of a prominent MAGA-aligned national security official. Polls still show Republican loyalty, but dissent inside his base is growing as he offers contradictory lines like “we’ve won in many ways” and “we haven’t won enough,” and refuses to say when the war ends or what “victory” even means if Hormuz stays blocked and Iran keeps its enriched uranium. The whole premise of Trumpism — big threats, bigger improvisation, and faith that the public will tolerate any risk as long as he projects strength — is being tested against the one thing it can’t bluff: sustained pain in wallets and a visible lack of control. ​ For the US itself, the rational interest is obvious and the opposite of Trump’s instincts: stop feeding a long, expensive Middle East war that Iran can prolong and weaponize through oil, and get out with the lowest possible military, economic, and political cost. Every extra week of escalation makes it harder to fake a clean “win,” and easier for Tehran to prove that the real stress test wasn’t for Iran at all — it was for the idea that America can keep gambling on forever wars and never pay the price at home. #IranWar#Trump#Trumpism#Hormuz#oil#gasprices#NATO#USA#geopolitics#warCost 📱American Оbserver - Stay up to date on all important events 🇺🇸