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

Пребарај: #financialloss

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

@CryptoM · Post #65408 · 13.04.2026 г., 05:35

🚀 Whale Investor Faces Losses on Iran Regime Prediction A significant investor, identified by the address 0xa7d1...b824, has incurred a loss of $345,000 after investing $527,000 in a prediction that the Iranian regime would collapse by June 30. According to Odaily, this investor previously placed $176,000 on a prediction that the U.S. military would invade Iran by March 31 and $148,000 on the regime's collapse by the same date, both of which did not materialize. The market's criteria for a 'yes' outcome are stringent, requiring the dissolution, paralysis, or replacement of Iran's current governing system, including the Supreme Leader's office, the Guardian Council, and the Revolutionary Guards led by clergy, by June 30, 2026. This must be confirmed by a consensus among recognized authoritative media, indicating the regime has lost control over the majority of the population. The rules specify that regular political elections, internal reforms, or power transitions do not meet the criteria. Even an internal coup retaining the core structure of the Islamic Republic would result in a 'no' settlement. Additionally, the loss of some territory or challenges from anti-government forces would not constitute a 'collapse' unless it prevents the regime from governing the majority of the population. #Investment#Iran#RegimeChange#PredictionMarket#FinancialLoss#Cryptocurrency#Politics

Crypto M - Crypto News

@CryptoM · Post #64796 · 10.04.2026 г., 00:16

🚀 AI TRENDS | SpaceX Reports Nearly $5 Billion Loss Due to AI-Related Expenses SpaceX reported a significant financial loss last year, amounting to nearly $5 billion, primarily due to expenditures related to artificial intelligence. According to Jin10, the company's investment in AI technologies contributed substantially to this deficit. The report highlights the growing financial impact of AI development on major corporations, as they increasingly allocate resources to advance their technological capabilities. This trend underscores the importance of AI in shaping the future of industries, despite the immediate financial challenges it may pose. #AI#SpaceX#FinancialLoss#ArtificialIntelligence#TechInvestment#IndustryTrends#CorporateFinance

Crypto M - Crypto News

@CryptoM · Post #65223 · 12.04.2026 г., 04:14

🚀 Sky Co-Founder Rune Faces Losses in Leveraged Oil and S&P 500 Positions Sky co-founder Rune's leveraged positions have recently experienced significant losses. According to Odaily, data from Hyperbot indicates that Rune's sevenfold leveraged short position on the Nasdaq 100 was closed 16 hours ago. Currently, he holds long positions valued at approximately $518,000, including a 20-fold leveraged long position in WTI crude oil futures and a sevenfold leveraged position in Brent oil. Additionally, Rune maintains a 20-fold leveraged short position on the S&P 500, valued at $159,000. At present, all of Rune's positions are in a loss state, with the total value dropping to around $678,000, reflecting a floating loss of approximately $61,000 and an investment return rate of -22.68%. Rune initially entered these positions last month when oil prices were rising, achieving a floating profit exceeding $1 million. However, recent fluctuations and declines in oil prices have turned these positions from profit to loss. #Sky#Rune#LeveragedTrading#OilFutures#SP500#Nasdaq100#FinancialLoss#WTICrude#BrentOil#Investing#SKY

Crypto M - Crypto News

@CryptoM · Post #64904 · 10.04.2026 г., 08:33

🚀 Philip Hammond Steps Down as Copper Chairman Amid U.S. Expansion Former UK Chancellor Philip Hammond has stepped down as chairman of the cryptocurrency custody firm Copper. According to Foresight News, he is succeeded by Mike Kuehnel, the former CEO of Flow Traders. This leadership change comes as Copper shifts its focus to the U.S. market and explores regulatory approval there, alongside preliminary discussions for a potential IPO. After failing to secure UK registration in December 2024, Copper obtained a Swiss license. The company's latest financial report reveals a $40 million loss in its UK operations. Additionally, former BNY executive John Meserve will join the board as a non-executive director. #PhilipHammond#Copper#Cryptocurrency#LeadershipChange#USExpansion#IPO#SwissLicense#FinancialLoss#BNY#MikeKuehnel#BNB