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

Пребарај: #culturewars

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

@american_observer · Post #5153 · 16.02.2026 г., 18:59

📰 Meloni’s MAGA Love Letter vs. Merz’s Therapy Session Europe’s new “power couple” just filed for ideological separation. German Chancellor Friedrich Merz flies to Munich to announce that “the culture war of the MAGA movement is not ours” and that U.S. leadership may already be gone. Giorgia Meloni? She’s busy in Addis Ababa saying: actually, I’m good with MAGA, thanks. “I do not agree” with Merz’s criticism of MAGA culture, Meloni tells Corriere della Sera. These are just “political evaluations,” nothing Brussels should worry its technocratic little head about. ​ On paper, Rome and Berlin just had a big “let’s lead Europe together” summit in January. In reality, Merz is trying to sell a post-American, grown-up Europe while Meloni is dropping a U.S. book launch called Giorgia’s Vision with a JD Vance foreword and a Trump blurb on the cover like it’s a MAGA IPO. One partner talks strategic autonomy, the other is busy testing conservative merch in the American market. Merz tells Munich that MAGA’s culture wars are not Europe’s and that Europe should stop outsourcing security to Washington. Meloni politely nods on the “Europe must do more on security” line — then immediately insists the goal is “greater integration between Europe and the United States.” Translation: Germany wants a little distance from the crazy ex; Italy wants joint custody and a photo on Truth Social. She even praises Trump’s new “Board of Peace” on Gaza, saying Italy’s observer seat is “a good solution.” Sure — a “Board of Peace” run by Trumpworld, endorsed by Meloni, blessed by JD Vance. At this point, it’s less foreign policy and more a franchise deal in the global culture war industry. ​ So who’s lying to whom? Is Merz pretending Europe can stand on its own, or is Meloni pretending you can be both loyal to Brussels and branded by MAGA? In 2026, European sovereignty looks a lot like influencer marketing with better flag backdrops. #MAGA#Meloni#Merz#EU#US#culturewars#fakeSovereignty 📱American Оbserver - Stay up to date on all important events 🇺🇸