Для тех кто пишет расширения на 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
#Audit
Korrupsiya xavfini boshqarish tizimi xalqaro darajada qayta tasdiqlandi
“O‘zbekneftgaz” AJning “ISO 37001:2016” xalqaro standart talablariga muvofiq joriy etgan Korrupsiyaga qarshi menejment tizimi navbatdagi auditdan muvaffaqiyatli o‘tdi.
👉Batafsil
_____
Система управления коррупционными рисками подтверждена на международном уровне
Акционерное общество «Узбекнефтегаз» успешно прошло очередной аудит Системы менеджмента противодействия коррупции, внедренной в соответствии с требованиями международного стандарта ISO 37001:2016.
👉Подробно
👇Bizni kuzating:
🌐web-sayt |
📷instagram |
👉telegram |
▶️youtube |
💬facebook
Ever wonder what's behind the scenes of tax investigation? 🕵️♂️ Our investigator, Jeremy, reveals his most intriguing tool – a door ram! 🚪
Watch the full video as Jeremy and Juliana explain the difference between a tax investigator and a tax auditor.
Find your role with us at go.gov.sg/lifeatiras💡⭐️
#WhyIDoWhatIDo#IRASGameOn#irassg#taxtech#investigation#audit#careerideas#lifeatIRAS
😇EVAA Updates: New Integrations, Expanded Features & Security Focus
🪙Integration with SafePal
EVAA is now available in the TON DeFi Collection section of the SafePal wallet. Through #TON Connect, users can work with basic assets, take and issue loans, as well as use lending in various LP pairs. The team has prepared a detailed text guide on connecting and using the protocol.
☕️Partnership with Swap Coffee
The protocol is integrated into the Swap Coffee aggregator. In the #Yield tab, you can now:
• track the current APR for EVAA pools;
• deposit and withdraw assets;
• manage deposits and loans.
🪙Temporary suspension of collateral in $CATI
Since Friday, July 11, support for the $CATI token in the ALTs pool has been temporarily disabled due to low liquidity. All active positions are safe and not subject to liquidation; however, opening new collateral in $CATI is currently not allowed. This decision was made to increase the protocol's stability.
🛡Trail of Bits audit completed
EVAA successfully passed the final stage of the audit at Trail of Bits. Despite recent criticism of this company's address due to an incident with another project, the #EVAA team emphasizes that reliability and transparency remain its priority.
EVAA app | News | Chat | Website
#EVAA#SafePal#CATI#Audit#Security#DeFi#Toncoin
🗿STON.fi v2 Successfully Passed Trail of Bits Audit
Trail of Bits recently conducted a comprehensive audit of the new STON.fi v2.
ℹ️ Trail of Bits is an experienced auditor who has audited such well-known platforms as: #Uniswap, #Ethereum 2.0, #Matic, #Chainlink and more!
The audit includes:
✔️ DEX User Experience Overview
✔️ Pools code analysis
✔️ Testing administrative and command messages between contracts
✔️ Checking tokens for compliance with the jetton standard
Most of the shortcomings identified in the audit have now been corrected. You can read the report in more detail at the link:
✅Audit results
📱 The DEX team also announced their intention to publish the smart contract code and launch a bug bounty program. This will not only allow everyone to test the reliability of STON.fi, but will also help young developers by demonstrating the standard of a smart contract.
#Stonfi#DEX#Audit#TON
Investors Flock to Legal Tech Startups
Despite a downturn in the venture capital market, record investments were made last year in legal tech startups focusing on AI solutions. These startups are securing rounds of $50-100 million as investor interest surges. Read more here: FastFounder article
In other news, President Javier Milei of Argentina clarified that he only disseminated information about the LIBRA token, not promoted it, and confirmed meetings with individuals involved in its launch. This comes after a brief spike in LIBRA's price following his shared purchase instructions. Additionally, the CEO of Jupiter, Ben Chow, has resigned amid a rising scrutiny of the LIBRA project. Full News
#AI#Crypto#VC#LegalTech#StartupInvestment#Argentina#LIBRA#VentureCapital#Investment#Technology#M&A #Blockchain#XRP#SEC#Audit#Innovation#TechTrends#MarketTrends
🚀 CMDSS Employee Accused of Misappropriating $46 Million in Seized Digital Assets
A federal indictment has been filed against John Daghita, an employee of CMDSS, accusing him of transferring approximately $46 million in seized digital assets from U.S. Marshals Service (USMS) wallets to wallets under his control. According to NS3.AI, Daghita was apprehended by French Gendarmerie officers on March 4 in Saint Martin. Prosecutors allege that these unauthorized transfers took place in December and January.
The case has reignited concerns previously raised by the Department of Justice (DOJ) inspector general and industry participants regarding the vulnerabilities in the USMS's crypto custody controls, procurement processes, and audit systems. These issues highlight the need for improved security measures and oversight in handling digital assets.
#CMDSS#JohnDaghita#USMS#digitalassets#crypto#seizedassets#fraud#misappropriation#federalindictment#FrenchGendarmerie#NS3AI#DOJ#cryptosecurity#vulnerabilities#audit#procurement#oversight