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

Пребарај: #industrialoutput

当前筛选 #industrialoutput清除筛选
Crypto M - Crypto News

@CryptoM · Post #65447 · 13.04.2026 г., 09:14

🚀 Investors May Shift Focus from Geopolitical News to Economic Data, Analyst Suggests On April 13, Christian Gattiker, Head of Research at Bank Julius Baer, indicated in a research report that investors might be becoming less sensitive to daily Middle Eastern headlines. According to Jin10, Gattiker noted that after weeks of geopolitical dominance in the markets, there is a significant possibility that investors will cautiously return to a more 'normal' market mechanism, focusing on macroeconomic data and corporate fundamentals. Upcoming U.S. producer price data, industrial output figures, and the Federal Reserve's Beige Book are expected to provide insights into inflation dynamics and potential economic momentum. #Investors#GeopoliticalNews#EconomicData#Macroeconomics#CorporateFundamentals#USProducerPriceData#IndustrialOutput#FederalReserve#Inflation#EconomicMomentum

Crypto M - Crypto News

@CryptoM · Post #64529 · 09.04.2026 г., 06:19

🚀 Germany's Industrial Output Falls Unexpectedly in February Germany's Federal Statistical Office announced on Thursday that industrial output in February unexpectedly declined, with energy price shocks from Middle Eastern conflicts expected to further suppress production. According to Jin10, industrial output fell by 0.3% month-on-month in February, following a revised flat reading in January. The market had generally anticipated a 0.5% increase for February. The decline in output was primarily driven by decreases in the construction sector, as well as in the electronics, optical products, and pharmaceutical industries. In contrast, the Federal Statistical Office noted that automobile production saw growth after a significant drop in January. #Germany#IndustrialOutput#Economy#Manufacturing#Construction#Electronics#Pharmaceuticals#Automobile#EnergyPrices#February