TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #173 · 28 окт.

Для тех кто пишет расширения на 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

Hashtags

Резултати

Пронајдени 3 слични објави

Пребарај: #yangiyul

当前筛选 #yangiyul清除筛选
EKOLOG.UZ| ENG

@ekologuzenglish · Post #12446 · 19.04.2026 г., 14:26

#Yangiyul Animals in the municipal veterinary service are dying without access to food and water A situation causing serious concern among animal rights activists and the public has been reported in the city of Yangiyul. According to them, an institution that is supposed to provide care and treatment for animals has become the center of a scandal due to improper conditions in its quarantine facility. Reports indicate that animals in the isolation unit are being kept without access to food and water. Of particular concern is an injured dog that urgently requires veterinary care. However, activists claim that no necessary treatment or care is being provided. Elena Vladimirovna Babenko, a member of the Public Council under the National Committee on Ecology and Climate Change, contacted the Veterinary Committee’s hotline (71 202 12 00, ext. 201). She was informed that the situation would be reviewed and appropriate measures would be taken. Despite these assurances, volunteers say that no changes have occurred on site. A volunteer named Asiya attempted to deliver medication, water, and food for the animals, but was denied access to the facility. Animal rights activists insist on an urgent inspection by the relevant authorities and a legal assessment of the situation. ☘️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.

Hashtags

EKOLOG.UZ| ENG

@ekologuzenglish · Post #11615 · 15.02.2026 г., 14:59

🚨 Lawlessness or rule of law? A zoo volunteer’s home attacked in Yangiyul The conflict between animal rights defenders and the animal control service has escalated into open confrontation. According to volunteers, the situation has already gone beyond legal boundaries and is infringing on fundamental civil rights. Animal welfare activists Asiya Abuzyárova and Svetlana Velichko reported that about 30 dogs disappeared from the territory of a municipal improvement enterprise. After attempts to return the animals, pressure reportedly began: a complaint was filed with the police, a volunteer was attacked, her phone was broken, and activists were allegedly harassed. ❗️ The most serious incident was the forced entry into a private home. According to reports, municipal workers used a ladder to break a window and enter Asiya Abuzyárova’s house, forcibly removing the animals inside. When the homeowner resisted, her phone was destroyed and her hand was injured. ⚖️ According to the legislation of Uzbekistan: 🔹 The home is inviolable — entry without the residents’ consent is allowed only on legal grounds or by court order. 🔹 Private property is protected by the state — damage to property and unlawful seizure are prohibited. 🔹 Any actions by officials must have legal grounds and be properly documented. This may constitute unlawful entry into a residence, abuse of authority, and violation of citizens’ rights. 📢 Key questions arise: ✔️ On what legal basis were the animals seized? ✔️ Who authorized the entry into the home? ✔️ Why are reports of property damage and injuries being ignored? The law must apply equally to everyone — both citizens and officials. The situation requires a transparent investigation and a legal assessment of the actions of all parties. #Yangiyul#civilrights#animalprotection#ruleoflaw ☘️ Follow the latest environmental news on @ekologuz. Send your suggestions and feedback via @eklguz_bot

EKOLOG.UZ| ENG

@ekologuzenglish · Post #11606 · 14.02.2026 г., 08:03

🐾 Where are the dogs disappearing in Yangiyul? At the temporary dog holding center (shelter) in Yangiyul, on February 10, volunteers recorded the dogs in the shelter. According to the volunteers, almost no adult dogs remained — all of them were reportedly killed overnight. A day earlier, many dogs were in the shelter, but when the volunteers visited, they saw only 5–6 dogs in the cages. The question is: where did the rest of the dogs go? Volunteers say they were killed. According to the volunteers, tomorrow the remaining poor dogs on Persidskaya Street — who are already afraid of every little sound — are also scheduled to be killed. 💔 This is not just statistics. This is a matter of our humanity. #ProtectAnimals#Yangiyul#AgainstCruelty#Ethics#Animals ☘️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