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

Пребарај: #unrealizedloss

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

@CryptoM · Post #64884 · 10.04.2026 г., 06:54

🚀 Trader Increases BTC Short Position Amid Market Fluctuations A well-known trader, identified as 'Set 10 Big Goals First,' has updated his trading positions, according to ChainCatcher. The trader's BTC short position has not triggered a stop-loss and has been increased to 2,567.49 BTC, with an average opening price of $71,554.61. Currently, this position is experiencing an unrealized loss of $1.374 million. Meanwhile, the trader's ETH short position stands at 38,465.22 ETH, with an average opening price of $2,248.74, resulting in an unrealized profit of $2.018 million. Overall, the trader's positions reflect a combined unrealized profit of approximately $644,000. #BTC#ETH#CryptoTrading#ShortPosition#MarketFluctuations#UnrealizedProfit#UnrealizedLoss

Crypto M - Crypto News

@CryptoM · Post #65328 · 12.04.2026 г., 23:23

🚀 Strategy Faces $14.5 Billion Unrealized Loss on Bitcoin Holdings Strategy has reported an unrealized loss of approximately $14.5 billion on its Bitcoin holdings for the first quarter. According to NS3.AI, the company last acquired 4,871 Bitcoin on April 6, spending over $329.8 million. This purchase increased Strategy's total Bitcoin holdings to 766,970, valued at around $54.5 billion at current market prices. Historically, when Michael Saylor, the company's leader, shares the Bitcoin acquisition chart, it often precedes a new purchase announcement within days. #Strategy#Bitcoin#UnrealizedLoss#BitcoinHoldings#MichaelSaylor#NS3AI#MarketPrices#Cryptocurrency#Investment#BTC