Для тех кто пишет расширения на 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
Several countries to import wheat from India after ban on shipment lifted
The agriculture ministry has projected a record 120 MT of wheat output in 2025-2026 crop years (July-June), trade sources said that output is definitely higher than 117 MT in 2024-25 crop year.
The area under wheat this season has increased to 33.41 million hectares (mha), 3% higher than last year, exceeding the normal sown area of 31.2 mha
#Agriculture
https://t.co/uvwNj9BuM7
Job Title: Poultry production manager
Job Type: On-site - Permanent (Full-time)
Job Sector:#Agriculture
Work Location: Gondar, Ethiopia
Experience Level: Senior
Vacancies: 1
Salary/Compensation: Monthly
Deadline: 8/11/2023
Description:
We are looking for a skilled poultry production manager who has at least a Bsc in animal science and related field. The applicant needs to have a minimum 6 years of experience. The location is Weleta.
__________________
Purpose Black Eth Trading s.c
[Verified Company ✅]
128 Jobs Posted
From: @freelance_ethio | @freelanceethbot
For our Amharic Channel, Join @afriworkamharic
🌎 The guano islands of Peru once fueled global agriculture. Thick layers of seabird droppings here created natural fertilizer so valuable, nations fought for control in the 19th century. ✨
#history⚡#ecology⚡#agriculture
👉subscribe Interesting Planet
#Koulouba | 06 mai 2025 | #Agriculture
15e Session du CSA : Priorité à la souveraineté alimentaire et au développement rural
Sous la présidence du Général Assimi GOÏTA, la 15e session du Conseil Supérieur de l’Agriculture (CSA)s’est tenue le 6 mai 2025 à Koulouba, réunissant le Premier ministre, des ministres clés et des représentants agricoles.
À l’ordre du jour :
- Bilan 2024 (inondations, insécurité)
- Exécution des recommandations précédentes
- Perspectives 2025-2027
🔷️Performances 2024 :
- 11M+ tonnes de céréales
- 640 000 tonnes de coton
- 97 000 tonnes de viande
- 113 000 tonnes de poisson
🔷️Mesures annoncées:
- Subventions :
- Coton (300 FCFA/kg)
- Engrais minéraux (14 000 FCFA/sac)
- Semences de maïs (1 500 FCFA/kg)
- Soutien à la mécanisation, pisciculture et crédit agricole
🔷️Objectif : Renforcer l’autosuffisance alimentaire et les chaînes de valeur locales.
🌎 Vertical farming—growing crops in stacked indoor layers—uses up to 95% less water than traditional agriculture, while reducing pesticide use and transportation emissions. Some modern vertical farms employ LED lighting and hydroponics, completely soil-free, to produce lettuce and herbs year-round in urban settings. ✨
#ecology⚡#technology⚡#agriculture
👉subscribe Interesting Planet
👉more Channels
🌎 The future of Earth’s ecology could be transformed by vertical farming—multistory indoor farms that use LED lighting and hydroponics to grow crops year-round. These farms use up to 95% less water than traditional agriculture and can be built in cities, reducing transport emissions and land use. ✨
#ecology⚡#technology⚡#agriculture
👉subscribe Interesting Planet
👉more Channels
🌎 The Amazon basin is home to “terra preta” soils—dark, fertile earth created by ancient humans mixing charcoal, bones, and compost. This enriched soil still boosts crop yields centuries later, showing early Amazon cultures mastered sustainable farming. ✨
#Amazon⚡#archaeology⚡#agriculture
👉subscribe Interesting Planet
News: #Ethiopia earns $288.48 million from horticulture exports in seven months, amid sector bottlenecks
Ethiopia has generated $288.48 million from the export of more than 160,000 tons of #horticultural products during the first seven months of the current Ethiopian fiscal year, the Ministry of #Agriculture announced, despite concerns raised by stakeholders over infrastructure gaps, logistics constraints, and land supply management.
The ministry disclosed the performance following a consultative meeting with relevant public institutions and local and foreign investors engaged in the horticulture sector to assess progress over the reporting period.
Minister of Agriculture Addisu noted that horticulture, alongside coffee, remains one of Ethiopia’s priority export commodities, highlighting its strategic importance in boosting foreign exchange earnings.
Ethiopia’s horticulture industry has faced mounting challenges in recent years, largely driven by security...
Read more: https://addisstandard.com/?p=55463
📹 VIDEO | Rice Producers Protest Agribusiness Pressure in Venezuela
Rice producers across Venezuela are taking to the streets ahead of the upcoming harvest, warning that prices offered by agroindustrial firms could leave many farmers unable to cover production costs.
Campesino groups say large conglomerates are using their control over silos, imports, and distribution to push prices down, while limited access to credit keeps farmers dependent on company financing.
After talks with producers, Agriculture Minister Julio León Heredia announced a provisional price. But campesino organizations warn they were barely represented in negotiations.
Click here to read our full report 👉🏾https://venezuelanalysis.com/news/venezuela-rice-producers-denounce-agribusiness-pressure-demand-govt-support-for-fair-prices/
#Agriculture#Peasants#Campesinos