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

Пребарај: #july2024

当前筛选 #july2024清除筛选
The Open Platform

@topco · Post #88 · 04.07.2024 г., 13:03

Boring A.P.E. (Attention Points Economy): Observations on a New Trend In the digital age, attention has become a valuable commodity, and the "Attention Points Economy" seeks to capture this value by turning simple interactions into measurable points. This concept is gaining traction, particularly in Telegram Mini apps like Notcoin and Hamster Kombat, which engage millions of users through gamified interactions. The economic value created by points rewards every beneficiary within the ecosystem. This creates micro-markets within apps and opens new opportunities for developers and users alike, potentially leading to a decentralized ecosystem where digital engagement and identity merge. Our new post explores the rapid adoption of this trend and its broader significance. #July2024#GameFi#TelegramMiniApps#Telegram#Notcoin

The Open Platform

@topco · Post #89 · 12.07.2024 г., 12:55

Native USDt on TON: Adoption and Market Dynamics Q2 2024 On April 19th, Pavel Durov, CEO & Founder of Telegram, Paolo Ardoino, CEO of Tether, and Andrew Rogozov, CEO of TOP & Wallet, announced the launch of native USDt on TON at TOKEN2049. It was designed to revolutionize peer-to-peer payments, allowing Telegram users to make USDt transfers instantly by simply sending a direct message to their contacts. With a total circulation of $580 million in just 3 months since its launch, USDt is already deeply integrated with most of TON's major protocols and dApps. This post will explore the emerging trends surrounding USDt within TON's ecosystem and its role as a Digital Dollar. Learn more about: — The premise for introducing native USDt to TON and its significance in the long-term strategy of TON and Telegram — Gasless USDt payments on TON — The context for USDt-TON’s adoption figures compared to similar metrics on other blockchains — The adoption markers of USDt-TON within the TON ecosystem — The current and future impact of USDt-TON on TON. You may be interested in: Stablecoins: Collateralized vs Algorithmic #TON#stablecoins#DeFi#July2024#USDT