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

Резултати

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

Пребарај: #goldreserves

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

@CryptoM · Post #64603 · 09.04.2026 г., 10:24

🚀 Czech Central Bank Increases Gold Reserves to 76.6 Tons As of the end of March 2026, the Czech Central Bank's gold reserves have reached nearly 77 tons, specifically 76.6 tons, according to data from the Czech Central Bank. According to Jin10, the World Gold Council reported that in February, the Czech Central Bank's gold reserves were approximately 75 tons, indicating an increase of 2 tons in February. The Czech Central Bank aims to increase its gold reserves to 100 tons by 2028. #CzechCentralBank#GoldReserves#Gold#MonetaryPolicy#Finance#Economy#PreciousMetals

Crypto M - Crypto News

@CryptoM · Post #64660 · 09.04.2026 г., 13:03

🚀 PRECIOUS METALS | Russia's Central Bank Reserves Increase to $767.5 Billion Russia's central bank reported an increase in its gold and foreign exchange reserves, reaching $767.5 billion for the week ending April 3. According to Jin10, this marks a rise from the previous value of $755.4 billion. The growth in reserves reflects ongoing adjustments in Russia's financial strategy amid global economic fluctuations. #Russia#CentralBank#GoldReserves#ForeignExchange#Finance#Economy#GlobalEconomy

Crypto M - Crypto News

@CryptoM · Post #65442 · 13.04.2026 г., 08:59

🚀 U.S. Dollar's Share in Global Reserves Hits Lowest Since 1994 The U.S. dollar currently represents approximately 46% of global foreign exchange and gold reserves, according to NS3.AI, citing data from the International Monetary Fund (IMF). When excluding gold, the dollar accounts for 57% of global reserve currencies, marking its lowest share since 1994. #USDollar#GlobalReserves#IMF#ForeignExchange#GoldReserves#ReserveCurrency #1994

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