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

Резултати

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

Пребарај: #goldholdings

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

@CryptoM · Post #65092 · 11.04.2026 г., 00:24

🚀 PRECIOUS METALS | SPDR Gold Trust Holdings Remain Unchanged at 1,052.419 Tons The SPDR Gold Trust, recognized as the world's largest gold ETF, reported no change in its holdings, maintaining a total of 1,052.419 tons. According to Jin10, this stability in holdings comes amid fluctuating market conditions and investor sentiment. The unchanged status reflects the current market dynamics and investor strategies in the precious metals sector. #preciousmetals#SPDRGoldTrust#goldETF#marketdynamics#investorsentiment#goldholdings

Crypto M - Crypto News

@CryptoM · Post #65398 · 13.04.2026 г., 05:07

🚀 PRECIOUS METALS | UBP Increases Gold Holdings, Forecasts Year-End Price to Reach $6,000 Union Bancaire Privée (UBP) has increased its gold holdings, projecting that the price of gold will reach $6,000 by the end of the year. According to Jin10, the bank's decision to bolster its gold reserves reflects a strategic move in response to anticipated market conditions. UBP's forecast suggests a significant rise in gold prices, driven by factors such as global economic uncertainties and inflationary pressures. The bank's outlook aligns with broader market sentiment, where investors are increasingly turning to precious metals as a hedge against volatility. This move by UBP underscores the growing importance of gold in investment portfolios amid fluctuating financial markets. #preciousmetals#gold#UBP#investment#inflation#economicuncertainty#goldholdings#marketforecast#financialmarkets#hedge

Crypto M - Crypto News

@CryptoM · Post #64780 · 09.04.2026 г., 22:29

🚀 PRECIOUS METALS | SPDR Gold Trust Reduces Holdings by 0.571 Tons The world's largest gold ETF, SPDR Gold Trust, has decreased its holdings by 0.571 tons, bringing the current total to 1,052.419 tons. According to Jin10, this adjustment reflects ongoing market dynamics and investor sentiment towards gold. The reduction in holdings may indicate a shift in investment strategies or responses to recent economic developments. SPDR Gold Trust's holdings are closely watched as a barometer for global gold demand and investment trends. #preciousmetals#SPDRGoldTrust#goldETF#goldholdings#investmentstrategies#economicdevelopments#globalgolddemand#goldmarket

Crypto M - Crypto News

@CryptoM · Post #64663 · 09.04.2026 г., 13:13

🚀 PRECIOUS METALS | Poland's Central Bank Holds 580 Tons of Gold Poland's Central Bank Governor, Adam Glapiński, has announced that the central bank currently holds 580 tons of gold. According to Jin10, this substantial reserve underscores Poland's strategic approach to strengthening its financial security and diversifying its assets. The gold holdings are part of a broader effort to ensure economic stability and safeguard against global market fluctuations. Poland's commitment to maintaining a robust gold reserve reflects its proactive measures in navigating the complexities of the international financial landscape. #Poland#CentralBank#GoldReserves#FinancialSecurity#EconomicStability#GlobalMarket#AssetDiversification#GoldHoldings#InternationalFinance