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

Резултати

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

Пребарај: #nidoe

当前筛选 #nidoe清除筛选
NIDO Russia (НИДО)

@nido_russia · Post #1937 · 02.02.2025 г., 10:58

🎊🎉🍾🇳🇬🇷🇺 Our beloved organisation, NIDO Russia has been officially accepted as a full member of NIDO Europe yesterday evening 01.02.2025 by the overwhelming majority of the general house which is the supreme organ. We owe this success to our faithful members, the board of trustees, the chairmen Emeritus and stakeholders. Recall that, a tiny group of people prevented this for many years, saying that we must be part of their cabal for our rights to be respected in Europe. We rejected their ideas and protocols, we refused to be gradually assimilated, we took our destiny in our hands, knowing God was on our side. Their condition for peace was that we stoop low and be under them. We rejected that kind of parasitic peace. This group said it was either their way or the highway. We chose the beautiful highway. You must not be a doctor or lawyer or teacher to be part of NIDO Russia or NIDO Europe. Every Nigerian legally residing in Russia has a right to apply to be part of us. Even those who may not yet be fully legal, it is not our duty to judge or condemn them, but rather to guide them (socioeconomically adapt them) towards legalisation and contributing positively to Russia and their families in Nigeria. It is a huge lesson for us all. "Na who give up, na him lose". Nevertheless, we are open to working together with everyone for our common good including those few people who worked against us. It is a new era. What are the benefits of being part of NIDO Europe? 1. The interests of Nigerians in Russia can be represented on a continental level. 2. The interests of the Russian Federation which are also our interests as residents can be represented on a continental level 3. Better negotiating power with the government on matters important to us as Diasporans. 4. Better synergy of efforts towards national development, bilateral trade, foreign direct investments and human capital development. I, on behalf of the executives congratulate us all for this huge achievement including those members who witnessed it live and direct. Yours in service, Dr. Godwin Ibe https://t.me/nido_russia/1937 #NidoRussia#NidoEurope#NIDO#NidoE#Nigeria#Russia

NIDO Russia (НИДО)

@nido_russia · Post #1847 · 26.10.2024 г., 12:30

NIDO Europe invites all members of NIDO Russia to an extraordinary general meeting. It will be held online. Benefits ✅ Take part in shaping Diaspora affairs on a continental level. ✅ Attendance is free ✅ Network with business partners around the European continent ✅ Make new friends/acquaintances ✅ Pitch your ideas ✅ The most active unofficial participant from NIDO Russia positively representing our interests will receive a token of appreciation for voluntary contribution to the diasporan affairs on a continental level. Take advantage of this golden opportunity. Registered members can simply send me a short message saying "I'm interested", and we'll do the rest and hook you up. Dr. Godwin Ibe, Chairman, NIDO Russia +79262385618 *This is a requisitioned EGM by members in accordance with the act of Parliament in the United Kingdom. #nidoe#nidoEurope#nidorussia#nido#NigeriansInDiaspora#egm

NIDO Russia (НИДО)

@nido_russia · Post #1843 · 23.10.2024 г., 17:59

NIDO Europe invites all members of NIDO Russia to an extraordinary general meeting. It will be held online. Benefits ✅ Take part in shaping Diaspora affairs on a continental level. ✅ Attendance is free ✅ Network with business partners around the European continent ✅ Make new friends/acquaintances ✅ Pitch your ideas ✅ The most active unofficial participant from NIDO Russia positively representing our interests will receive a token of appreciation for voluntary contribution to the diasporan affairs on a continental level. Take advantage of this golden opportunity. Registered members can simply send me a short message saying "I'm interested", and we'll do the rest and hook you up. Dr. Godwin Ibe, Chairman, NIDO Russia +79262385618 *This is a requisitioned EGM by members in accordance with the act of Parliament in the United Kingdom. #nidoe#nidoEurope#nidorussia#nido#NigeriansInDiaspora#egm

NIDO Russia (НИДО)

@nido_russia · Post #1832 · 19.10.2024 г., 05:01

NIDO Europe invites all members of NIDO Russia to an extraordinary general meeting. It will be held online. Benefits ✅ Take part in shaping Diaspora affairs on a continental level. ✅ Attendance is free ✅ Network with business partners around the European continent ✅ Make new friends/acquaintances ✅ Pitch your ideas ✅ The most active unofficial participant from NIDO Russia positively representing our interests will receive a token of appreciation for voluntary contribution to the diasporan affairs on a continental level. Take advantage of this golden opportunity. Registered members can simply send me a short message saying "I'm interested", and we'll do the rest and hook you up. Dr. Godwin Ibe, Chairman, NIDO Russia +79262385618 *This is a requisitioned EGM by members in accordance with the act of Parliament in the United Kingdom. #nidoe#nidoEurope#nidorussia#nido#NigeriansInDiaspora#egm