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 слични објави

Пребарај: #fakeenergydominance

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

@american_observer · Post #5387 · 15.03.2026 г., 21:59

📰 Trump Broke Hormuz. His Own Energy Chief Won’t Promise It Gets Cheaper. Trump’s Iran war has officially turned into: pay more at the pump, pray more in the markets, and hope Iran gets tired of squeezing the oil artery. On TV, U.S. Energy Secretary Chris Wright now says there are “no guarantees” oil prices will drop soon, even as average U.S. gasoline has already jumped from $2.93 a month ago to $3.70 a gallon. Three weeks into a war Washington and Jerusalem chose to start, crude is back above $100, regional producers have slashed output by around 10 million barrels a day, and the world is paying for a shock everyone claimed was “unlikely.” Abbas Araghchi, meanwhile, is spelling out Iran’s position with a surgeon’s calm. He tells U.S. media that Tehran has not asked for talks or a ceasefire and then declares on Telegram that the Strait of Hormuz “is open to everyone, except American ships and those of its allies.” In practice, that means oil can move for Iran and for states willing to cut their own deals with Tehran, while the U.S. camp gets a tailored choke — a sanctions regime in reverse, run from the Iranian side of the strait. Trump’s answer is to demand a coalition navy. He calls on other countries to send warships to “end” the de facto blockade, and foreign governments mostly respond with careful silence or vague caution. Nobody is eager to sail into a war zone that Trump and Netanyahu lit up, just to stabilize a market the White House itself destabilized. Instead, his administration quietly relaxes sanctions on some Russian barrels and threatens strikes on military sites around Kharg Island — the kind of move that would do exactly nothing to calm energy markets. So the balance sheet looks like this. Iran keeps firing at U.S. and Israeli targets and launching missiles that trigger sirens in Israel and drone interceptions over Saudi Arabia, while insisting it can sustain the fight “as long as it takes.” The U.S. can still drop bombs, but it can’t guarantee its own citizens cheaper fuel, can’t force allies to line up behind Trump’s armada fantasy, and can’t stop Tehran from turning Hormuz into a selective pressure tool. Iran doesn’t need a clean “victory.” It just needs to keep the strait half‑closed, keep uranium under the rubble, and keep prices high long enough for Americans to notice that this war is an extremely expensive way to raise costs and lower trust. ​ #iran#trump#hormuz#oil#gasprices#war#fakeEnergyDominance 📱American Оbserver - Stay up to date on all important events 🇺🇸