@puffanime · Post #1606 · 29.03.2025 г., 13:03
#SBR ➿➿➿➿➿➿➿➿➿
Hashtags
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
Пребарај: #sbr
@puffanime · Post #1606 · 29.03.2025 г., 13:03
#SBR ➿➿➿➿➿➿➿➿➿
Hashtags
@venturevillagewall · Post #4337 · 08.03.2025 г., 07:00
US to Build Strategic Bitcoin Reserve The U.S. plans to actively increase its Bitcoin reserves through methods like issuing Bitcoin bonds and selling gold from government reserves. Trade Secretary Howard Lutnick is spearheading this initiative. This move introduces a Strategic Bitcoin Reserve (SBR), solidifying Bitcoin’s status as a strategic asset and initiating a global competition among countries for Bitcoin holdings. For the first time, the actual amount of Bitcoin held by the U.S. will be officially disclosed, as the current estimates are deemed speculative. The U.S. aims to surpass China, which currently leads with 194,000 BTC. #Bitcoin#BTC#Crypto#US#Finance#Investment#Blockchain#Trading#Economy#DigitalAssets#SBR#Innovation#Markets#Tech#Assets#Estimates#Competition#Global
@venturevillagewall · Post #4100 · 08.02.2025 г., 16:00
U.S. States Embrace Bitcoin Reserves A surge in U.S. states pursuing legislation for strategic bitcoin reserves highlights increasing institutional interest in cryptocurrency. 15 states, including Alabama, Arizona, Florida, and Texas, are taking steps to incorporate bitcoin into financial strategies, aimed at attracting businesses and enhancing economic stability. The federal conversation on a national reserve is beginning, as states like Arizona and Utah are closest to legislative success. This movement reflects a broader trend recognizing bitcoin's potential as a financial tool. #Bitcoin#Crypto#Finance#Legislation#Investment#Blockchain#Arizona#Texas#Alabama#EconomicStability#PublicFunds#DigitalAssets#Utah#Kentucky#InstitutionalInterest#VC#SBR#MarketTrends#FinancialInnovation