Для тех кто пишет расширения на PyQt/PySide для CG-софтов.
Когда я только начинал писать тулзы под Maya (тогда еще версия 2010-2011) мне приходилось ручками ставить PyQt4 под Maya. Даже написал мануалы по установке на своём сайте. Но потом стал доступен из коробки PySide и позже он обновится до PySide2. Для некоторых систем была поддержка PyQt5.
И как простому разработчику поддерживать этот зоопарк? Ведь хочется чтобы тул работал на любой версии (вы тоже делали модуль что-то типа import_qt.py?😁)
На помощь приходит проект Qt.py который поставил себе цель унифицировать использование Qt-биндингов вне зависимости от среды где запускается код. Те, кто давно пишут на Qt, скорее всего знают этот проект.
Он стал стандартом для CG-индустрии и используется в топовых студиях и проектах.
Qt․py помогает запускать один и тот же код на разных платформах с разными вариантами Qt-библиотек. Это может быть как интеграция в CG-софт, так и переносимость стендалонов между разными платформами с разными версиями Python.
Я решил рассказать о некоторых особенностях работы с этой библиотекой.
Сегодня о том, как установить и использовать Qt․py и что это вам даёт.
Установка
pip install Qt.py
Чтобы начать использовать Qt․py в коде достаточно заменить импорт вашего варианта Qt-биндинга на Qt․py
from [PySide|PyQt4|PySide2|PyQt5] import QtWidgets
=>
from Qt import QtWidgets
Теперь ваш код будет поддерживать любой вариант биндинга Qt в Python.
При этом не потребуется использовать if-else конструкции под разные версии. Все вызовы теперь одинаковы.
Всё что нужно сделать, это написать его по правилам PySide2. Именно эта версия была взята за основу.
Приоритет импорта такой:
1. PySide2
2. PyQt5
3. PySide
4. PyQt4
Что именно загрузилось можно посмотреть в переменной __binding__
>>> import Qt
>>> Qt.__binding__
'PySide2'
Приоритет имопрта можно изменить через переменные QT_PREFERRED_BINDING и QT_PREFERRED_BINDING_JSON. Причем под каждый проект оверрайды можно настраивать индивидеально.
#qt#libs
FIVA Updates: What’s New
🏳️FIVA Protocol briefly dropped off the radar in early May, but it’s back with a full slate of improvements.
Release highlights:
➡️Auto LP Flow – liquidity provision is now fully automated.
➡️Interface refresh – the Pools tab has a clearer design and smoother navigation.
➡️TX queue – transaction status appears in real-time notifications.
➡️YT/PT and APR charts – better data visualization.
➡️USD equivalents – easier P&L tracking.
🔦New farming options:
➡️ Added an EVAA/USDT pool and two SLP pools (USDT and TON).
➡️In partnership with #TorchFinance, the stgUSD stablecoin is now live; #Ethena integration is coming soon.
👌Season 1 results:
➡️ ~690 active farmers.
➡️ TVL topped $1.4 M; trading volume hit $1 M.
➡️ Rewards distributed:
• 2.8 M 🤘 FIVA points
• 105 M 😇 EVAA XP
• 1.8 M 🐸 Storm RP
FIVA keeps expanding its asset lineup and polishing the UI, with automation and user convenience front and center.
FIVA App | Channel
⚡️The Daily TON: Ethena Launch Details on TON
#TON#Ethena
The Daily TON shares new insights on Ethena's integration with TON, revealing that the USDe stablecoin will be supported by multiple wallets and integrated into various DEXes and lending services. Users can earn returns by staking USDe for tsUSDe tokens, with potential yields influenced by market conditions. No exact launch date is provided, but indications suggest a May release.
Source: link
@tonlines
⚡️TON Community: Ethena Launches USDe Savings on TON
#Ethena#TON
The TON Community announces that Ethena is launching its dollar savings technology, USDe, on the TON blockchain, reaching Telegram's vast user base. This integration aims to simplify access to savings through various wallets such as Tonkeeper and MyTonWallet. Ethena, known for its rapid growth, brings significant opportunities with over $6 billion in TVL.
Source: link
@tonlines
A wallet "0xd4d" received 465,000 $HYPE ($10.32M) from #Galaxy Digital OTC 2 hours ago. This wallet also received 56.12M $ENA ($24.76M) from #Ethena Lab Wallet 2.5 months ago but now worth $9.32M, resulting in a loss of $15.44M. Address: 0xd4d56a30a4a74…
A wallet "0xd4d" received 465,000 $HYPE ($10.32M) from #Galaxy Digital OTC 2 hours ago.
This wallet also received 56.12M $ENA ($24.76M) from #Ethena Lab Wallet 2.5 months ago but now worth $9.32M, resulting in a loss of $15.44M.
Address: 0xd4d56a30a4a745f8ba732e8b453b7066260fbc10
https://x.com/OnchainLens/status/2015651462005817466
Follow @onchainlens for more onchain updates
⚡️EVAA Announces New Additions to Main Pool
#EVAA#Ethena
The EVAA channel (@evaaprotocol) has introduced USDe and tsUSDe to its Main Pool. These synthetic dollar stablecoins are part of Ethena's technology, offering TON users seamless dollar savings and rewards.
Source: link
@tonlines
⚡️Tonkeeper News: Ethena USDe Now on Tonkeeper
#Ethena#Tonkeeper
Tonkeeper News announces the integration of Ethena’s cryptocurrencies, USDe and its staked version tsUSDe, into the Tonkeeper app, expanding the TON ecosystem. Users can now send, receive, and swap these assets, enhancing their access to on-chain resources.
Source: link
@tonlines
TON — LIVE: Ethena Chooses STON․fi for USDe Liquidity Pools
#Ethena#STONfi
Ethena has selected STON․fi to establish and manage USDe liquidity pools on the TON blockchain. Users can interact with the token through STON․fi’s app, offering exchange, staking, and pool participation in one interface.
Source: link
@tonlines
⚡️EVAA Announces Ethena Launch on TON
#TON#EVAA#Ethena
EVAA has announced its support for the launch of Ethena in the TON ecosystem, as officially revealed at TOKEN2049. EVAA will serve as a Day 1 integration partner, highlighting its role in advancing stable and scalable onchain finance.
Source: link
@tonlines
TON — LIVE: Integration of USDe Stablecoin in MyTonWallet
#Ethena#MyTonWallet
TON — LIVE shares that the USDe stablecoin from Ethena is now integrated into MyTonWallet. Users can also participate in staking with returns up to 18% annually.
Source: link
@tonlines
⚡️The Daily TON: Ethena Brings Innovative Stablecoin to the Ecosystem
#Ethena#stablecoin#TON
The Ethena project plans to enter the TON ecosystem, introducing its unique stablecoin USDe. Unlike traditional stablecoins, USDe uses a hedging strategy to manage volatility, offering users potential yields on their holdings. The project aims to integrate with blockchain ecosystems, including a Telegram mini-app for broader accessibility.
Source: link
@tonlines