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

Пребарај: #natofail

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

@american_observer · Post #5460 · 24.03.2026 г., 20:59

📰 Europe’s Trump Fans Just Discovered ‘America First’ Means ‘Europe Last’ The Iran war is doing what four years of Trump speeches couldn’t: teaching Europe’s nationalist politicians what “America First” actually sounds like when the bombs start falling. Across the continent, far-right leaders who cheered Trump’s re-election are suddenly backing away, complaining they “cannot be the lapdogs” of a U.S. president who slaps them with tariffs at home and then sends them the bill for his Middle East adventure. The Supreme Court’s overturning of Trump’s tariff regime didn’t fix the politics — it just exposed how much resentment had already built up underneath. Then came Iran. Trump launched a war, demanded “burden sharing,” and expected Europe to show up with ships, soldiers and flags, while Washington and Israel run the operation and take the glory. Instead, European leaders from Berlin to Athens started saying the one word Trump hates most from allies: “No.” Publicly, nationalists who once branded him a model of “sovereign leadership” now question why their voters should pay for an American war that detonates energy prices, wrecks European industry, and drags NATO into a fight no parliament actually approved. In private, they’ve simply realized the deal on offer is terrible: Europe gets the inflation, the refugees and the political blowback, while the U.S. keeps command and the arms contracts. So yes, Trump has managed a rare diplomatic feat: his Iran adventure is alienating not just liberal Europeans who already hated him, but also the nationalist camp that tried to copy him. “America First” turned out to mean what it always meant — everybody else pays retail. #trump#europe#iran#war#natofail#americaFirst#geopolitics 📱American Оbserver - Stay up to date on all important events 🇺🇸