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

Пребарај: #marchcpi

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

@CryptoM · Post #64869 · 10.04.2026 г., 05:52

🚀 Germany's March CPI Final Figures to be Released Shortly Germany is set to release the final figures for its Consumer Price Index (CPI) for March in ten minutes. According to Jin10, this data will provide insights into the country's inflation trends and economic health. The CPI is a crucial indicator that reflects the average change in prices paid by consumers for goods and services over time. Analysts and investors are closely monitoring these figures to assess potential impacts on monetary policy and market dynamics. #Germany#MarchCPI#ConsumerPriceIndex#inflation#economichealth#monetarypolicy#marketdynamics

Crypto M - Crypto News

@CryptoM · Post #64976 · 10.04.2026 г., 12:39

🚀 U.S. March CPI Rises Sharply Amid Conflict with Iran The U.S. Consumer Price Index (CPI) for March showed a significant increase, driven by soaring gasoline prices due to the ongoing conflict with Iran. According to Jin10, the seasonally adjusted CPI rose by 0.9% month-on-month, marking the largest increase since 2022. Data released on Friday indicated that the CPI climbed 0.9% from February, with the year-on-year growth rate accelerating to 3.3%, the fastest pace since 2024. The U.S. Bureau of Labor Statistics noted that the record surge in gasoline prices contributed nearly three-quarters of the monthly CPI increase. Meanwhile, the core CPI, which excludes food and energy costs, saw a more modest rise of 0.2% month-on-month. #USCPI#MarchCPI#gasolineprices#Iranconflict#consumerpriceindex#economicdata#inflation#BureauofLaborStatistics#coreCPI#economicgrowth