Для тех кто пишет расширения на 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
🌍 Earth Day x Tkong | Walking with the Earth
We believe that every action should be rooted in respect for nature.
Tkong is deeply committed to our shared home—Earth.
🌀 The image seen here reflects the natural elements within the Tkong logo—oceans, forests, and mountains, all part of our planet.
#EarthDay2025#Tkong#EnvironmentalProtection#EarthDay#WalkingWithTheEarth
⚠️ AIR POLLUTION IS A SERIOUS CONCERN!
In Quvasoy city, Do‘stlik residential area, the 82-KMK reinforced concrete products manufacturing plant is releasing toxic gases and other harmful substances into the atmosphere on a daily basis.
This situation poses a real threat to public health and the environment. Under the current circumstances, a legitimate question arises:
❓ How lawful and acceptable is such activity today?
We, as members of the public, respectfully but firmly request:
🔹 a thorough investigation of these emissions,
🔹 verification of whether the enterprise operates in full compliance with environmental and sanitary legislation,
🔹 and the adoption of appropriate measures if violations are identified.
🟢 Clean air is not a privilege — it is a fundamental right of every citizen.
🟢 Public health must take precedence over industrial interests.
Responsible authorities should not remain indifferent.
The public will continue to monitor this situation closely.
#AirPollution
#Quvasoy
#Dostlik
#Environment
#PublicHealth
#EnvironmentalProtection☘️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.
Central Asian Ecologists and Eco-Activists Forum at Green University
🔴On April 8, 2026, Green University hosted the Central Asian Forum of Ecologists and Eco-Activists on "Legal Mechanisms for Environmental Protection" in partnership with ‘Yuksalish’ Movement.
The forum brought together policymakers, legal experts, environmental specialists, and eco-activists from Uzbekistan and Kazakhstan to discuss evolving environmental policies, law enforcement practices, green urban development, and public participation in decision-making. Experts from Kazakhstan shared insights on Aarhus Convention mechanisms, urban air quality, and eco-startups.
🗣The event featured panel discussions, open debates, and concluded with the presentation of a draft Final Resolution to strengthen environmental governance and legal protection.
#GreenUniversity#EcoForum#Sustainability#EnvironmentalProtection
👉ReadMore _________________
Green University’da Markaziy Osiyo ekologlari va eko-faollari forumi bo‘lib o‘tdi
🔴2026-yil 8-aprel kuni Green University'da “Yuksalish” Harakati bilan hamkorlikda "Atrof-muhitni muhofaza qilishning huquqiy mexanizmlari" mavzusida Markaziy Osiyo ekologlari va eko-faollar forumi bo‘lib o‘tdi.
Forum O‘zbekiston va Qozog‘istondan kelgan siyosatchilar, huquqshunoslar, atrof-muhit bo‘yicha mutaxassislar va eko-faollarni birlashtirib, atrof-muhit siyosatining rivojlanishi, qonun ijrosi amaliyotlari, yashil shaharlarni rivojlantirish va qaror qabul qilish jarayonida fuqarolik ishtiroki masalalarini muhokama qilish imkonini berdi. Qozog‘istonlik ekspertlar Aarhus Konventsiyasi mexanizmlari, shahar havosining sifati va eko-startaplar bo‘yicha o‘z tajribalari bilan o‘rtoqlashdi.
🗣Tadbir panel muhokamalari va ochiq munozaralar bilan o‘tkazilib, atrof-muhit boshqaruvini va huquqiy himoyani mustahkamlashga qaratilgan yakuniy qaror loyihasining taqdimoti bilan yakunlandi.
#GreenUniversity#EcoForum#Barqarorlik#AtrofMuhitniMuhofazaQilish
👉Batafsil
✉️[email protected]
☎️ +998 55 512 00 77
📍Location
🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube
Air Quality Assessment in Termez 2025: Toward Cleaner Air and Clearer Skies
🔴On December 16, 2025, Green University, together with UNEP and the Finnish Meteorological Institute, presented the results of the air quality assessment in Termez. The event brought together government representatives, experts, development partners, media, and civil society.
🔴The assessment, conducted at the request of the National Committee on Ecology and Climate Change of Uzbekistan, was based on data from the first automatic reference air monitoring station installed in Termez in 2024 with the support of the Zamin Foundation. The study identified key pollution sources and provided science-based recommendations to improve air quality.
🔴The discussion also covered new air quality management strategies, including the work of Uzhydromet and youth-focused environmental initiatives by the Zamin Foundation.
#AirQuality#CleanAir#Termez#Uzbekistan#GreenUniversity#UNEP#FMI#ClimateAction#EnvironmentalProtection
✉️[email protected]
☎️ +998 55 512 00 77
📍Location
🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube
Memorandum Signed Between Green University and “Yuksalish” Movement
Within the framework of the Central Asian Forum of Ecologists and Eco-Activists, a Memorandum of Understanding was signed between Green University and “Yuksalish” Movement.
💬The document outlines cooperation in organizing environmental forums, conducting sociological and environmental surveys, supporting innovative startups, and engaging students in volunteer activities.
💬The parties also agreed to expand collaboration through joint research, as well as seminars and conferences.
#GreenUniversity#Yuksalish#MemorandumOfUnderstanding#EcoForum#EnvironmentalProtection#Cooperation
👉ReadMore ________________
Green University va “Yuksalish” Harakati o‘rtasida memorandum imzolandi
Markaziy Osiyo ekologlari va eko-faollari forumi doirasida Green бUniversity va “Yuksalish” Harakati o‘rtasida O‘zaro anglashuv memorandumi imzolandi.
💬Mazkur hujjat ekologlar forumlarini tashkil etish, sotsiologik va ekologik so‘rovlar o‘tkazish, innovatsion startaplarni qo‘llab-quvvatlash hamda talabalarni volontyorlik faoliyatiga jalb etishni nazarda tutadi.
💬Shuningdek, tomonlar qo‘shma ilmiy tadqiqotlar, seminarlar va konferensiyalar orqali hamkorlikni kengaytirishga kelishib oldi.
#GreenUniversity#Yuksalish#Memorandum#EcoForum#AtrofMuhit#Hamkorlik
👉Batafsil
✉️[email protected]
☎️ +998 55 512 00 77
📍Location
🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube