Для тех кто пишет расширения на 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
📢 Official Statement
According to information shared on our Telegram channel, the situation in front of House No. 69, Beruniy Street, Samarkand caused serious dissatisfaction among local residents.
For a long time, the household waste collection area was not cleaned, and the containers were not emptied regularly. As a result, the surrounding environment deteriorated, trash spread around, unpleasant odors appeared, and sanitary standards were violated.
✅ Actions taken:
The area in front of House No. 69 on Beruniy Street has been completely cleaned.
“Maroqand Obod” LLC will ensure timely waste removal and monitor the area regularly.
🟢 Note: Thanks to residents’ complaints and public oversight, prompt measures were taken. Maintaining a clean environment is important for every citizen.
#Samarkand#CleanCity#WasteManagement#PublicOversight☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot
Instagram | Facebook | Twitter | Sayt | Youtube.
Hauler Hero Secures $10M Funding
Hauler Hero has raised $10 million in funding to enhance its waste management software solution. This platform aids waste haulers in optimizing operations, boosting efficiency, and cutting costs. The funding round closed on December 19, 2024. 🔗Learn more
#Funding#WasteManagement#Software#Efficiency#CostReduction#HaulerHero
🚀 Japan Considers Remote Pacific Island for Nuclear Waste Disposal Site
Japan is reportedly considering a remote Pacific island as a potential location for a nuclear waste disposal site. Bloomberg posted on X that the proposal aims to address the country's ongoing challenges with nuclear waste management. The island's isolation is seen as a strategic advantage, minimizing risks to populated areas. This move comes amid Japan's efforts to enhance its nuclear waste disposal infrastructure, ensuring long-term environmental safety. The proposal is still in its early stages, with further assessments required to evaluate the site's suitability and potential environmental impact.
#Japan#NuclearWaste#PacificIsland#EnvironmentalSafety#WasteManagement#NuclearDisposal#Infrastructure#EnvironmentalImpact
$7.17M Funding for Thromboinflammatory Solutions
Key funding rounds for innovative companies:
- Aplagon: $7.17M for thromboinflammatory disease treatments. Learn more
- Dxcover: $6.20M targeting liquid biopsy and AI for cancer detection. Learn more
- Vetigenics: $6M to enhance pet cancer treatments with targeted antibody therapies. Learn more
- Atma Sciences: $5.49M funding announced. Learn more
- Semeris: $4.36M for AI-driven legal document review solutions. Learn more
- Nala Earth: $3.97M focusing on corporate biodiversity impacts and compliance. Learn more
- Laclarée: $3.65M funding round completed. Learn more
- Hopia: $3.65M to improve healthcare planning via AI. Learn more
- OFFROAD: $1.56M for road and public space management solutions. Learn more
- Beans: $1.46M aimed at reducing waste through new product offerings. Learn more
#Funding#Thromboinflammatory#Cancer#AI#LiquidBiopsy#PetHealth#LegalTech#Biodiversity#Healthcare#WasteManagement#VC
Funding News: December 2024
🚀 Major funding rounds announced:
- Alvie: $2.19M for HUGO digital assistant
- Buildpeer: $2.50M for construction project optimization
- Island Passage: $2.50M in funding
- TIXiMED: $2.65M for diabetes treatment
- The Pad Climbing: $3M for climbing community project
- PeptiSystems: $4.07M for peptide and oligonucleotide therapeutics
- Greenlight Health: $4.20M for data solutions
- TripSuite: $5M for agency growth tools
- DuckChain: $5M for blockchain solutions
- Nexa Finance: $5.04M for investment opportunities
- Tenor: $5.40M for management training with AI
- Smartr365: $6.33M for mortgage brokerage platform
- Astraveus: $7.40M for cell therapies
- EditPep: $8.20M in funding
- Jrnys: $8.65M for personalized healthcare solutions
- Hoji: $8.94M for ecological solutions
- Hauler Hero: $10M for waste management software
- Trinity College, Dublin: $10.46M in funding
- PeproMene Bio: $11M for cancer therapies
- Hervolution Therapeutics: $11.70M for immunotherapies
For more details, visit the respective websites.
#Funding#Healthcare#Biotech#AI#Construction#Therapeutics#WasteManagement#Investment#DigitalAssistant#CellTherapies#EcoDesign#Mortgage#Finance#Diabetes#Peptides#Community#Climbing#Software#PersonalizedHealthcare#Blockchain