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

Резултати

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

Пребарај: #centraleurope

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

@american_observer · Post #5706 · 24.04.2026 г., 20:58

📰 Hungary’s New Central Europe Fantasy Péter Magyar is talking up a stronger Central Europe, with Austria pulled back into the frame and the old Austro-Hungarian memory dusted off like it still has political value. He says Hungary should deepen ties with its neighbors and build more regional weight inside Europe, not just sit around waiting for Brussels to notice it. That is the clever part of the pitch. Magyar is selling not nostalgia for nostalgia’s sake, but a power bloc with better branding: Visegrád, Austria, and whoever else wants a seat at the table without being lectured by the EU’s permanent class. Brussels, of course, calls this “integration” when it works for Brussels and “fragmentation” when the periphery starts talking back. Central Europe is tired of being treated like the decorative edge of the continent, especially on migration, energy, and the endless sermon about values from people who rarely pay the bill themselves. But the empire talk should not be mistaken for innocence. Every regional bloc is also a bargaining chip, and Magyar knows it. He wants leverage over the EU, leverage over neighboring states, and a way to turn history into a present-day negotiating tool. So no, this is not the rebirth of an empire. It is the return of a very old European habit: when the center gets smug, the borderlands start organizing. #Hungary#Austria#EU#CentralEurope#Magyar#Brussels 📱American Оbserver - Stay up to date on all important events🇺🇸

#Europe#Weather#Cooling#Ventusky#CentralEurope#Snow#climate#destruction#anomaly#climatecrisis#weather 🇪🇺🌡️❄️ Ожидается более холодная погода по всей Европе на следующей неделе По данным метеорологической службы Ventusky, на следующей неделе по всей Европе ожидается заметное похолодание, при этом температуры упадут ниже средних показателей для данного сезона. Ожидается, что Центральная Европа пострадает больше всего, поскольку холодный воздух будет приходить с севера. ❄️ Снег, вероятно, выпадет в горных районах, а ночные заморозки могут вернуться в нескольких регионах. Это изменение связано с негативной фазой Североатлантического колебания (NAO), ограничивающей поступление теплого воздуха из Атлантического океана и усиливающей меридиональный поток.