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

Резултати

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

Пребарај: #pashinyan

当前筛选 #pashinyan清除筛选
International News

@intnewsagency · Post #8996 · 28.03.2026 г., 15:50

Armenian PM Pashinyan Affirms Friendship with Russia, Announces Moscow Visit Armenian Prime Minister Nikol Pashinyan confirmed that Russia remains a friendly nation and denied rumors of deteriorating ties. Responding to citizens’ calls to maintain strong relations with Moscow, he emphasized upcoming visits and ongoing bilateral contacts. "Russia is our friend," Pashinyan stated, highlighting the stability of their alliance. #Armenia#Russia#Pashinyan#InternationalRelations The main news of Russia and the world ishere.

Turchia e dintorni

@notizieturchia · Post #2987 · 30.01.2025 г., 14:03

#Pashinyan, Primo Ministro dell'#Armenia, parla in #Svizzera: "Dobbiamo rivisitare la storia del genocidio armeno. Dobbiamo capire cosa è successo e perché è successo, come l'abbiamo percepito e attraverso chi lo abbiamo percepito. Come mai nel 1939 non c'era un piano di riconoscimento del genocidio armeno e come mai nel 1950 è emerso il piano?".

International News

@intnewsagency · Post #8795 · 22.03.2026 г., 13:38

Armenian PM Pashinyan Clashes with Passenger over Karabakh in Yerevan Metro Armenian Prime Minister Nikol Pashinyan argued with a Karabakh resident in Yerevan metro, accused of surrendering the region to Azerbaijan. Pashinyan defended government efforts to preserve Karabakh’s population, citing significant budget allocations. He urged not to blame him for betrayal: “Why didn’t you stay? Don’t say I surrendered Karabakh.” This incident highlights ongoing tensions over the disputed region’s future. #Armenia#Karabakh#Pashinyan#InternationalNews The main news of Russia and the world ishere.

American Оbserver

@american_observer · Post #5171 · 19.02.2026 г., 16:59

Pashinyan, Trump’s “Board of Peace,” and the Washington Pilgrimage Nikol Pashinyan didn’t fly to Washington for “peace.” He flew to be photographed inside Trump’s new private UN, the Board of Peace — a body where one man chairs for life, invites who he wants, and gets veto power over everyone else, including the countries paying the bills. Armenia is listed as a founding member, which sounds grand until you read the charter and realize “membership” mostly means buying a ticket to Trump’s parallel world order show. On paper, the Board of Peace was created to oversee Gaza and “stability” after war. In reality, it’s being rolled out as a rival stage to the United Nations, built around Trump’s personal authority and a small club of leaders who either need Washington, hate Brussels, or both. For a conflict‑torn, isolated Armenia, Pashinyan is clearly betting that sitting at that table is cheaper than being left outside when deals on borders, corridors, and frozen wars get cut. The price is obvious: you legitimize a structure that centralizes global “peace” in the hands of a man who treats diplomacy like branding. The irony is that while Pashinyan is flying to Washington to pose as a responsible statesman in a “peace council,” Western business media are already calling him a budding autocrat for his domestic behavior — up to and including criminal cases against the Catholicos and pressure on the church at home. So abroad he’s a founding father of peace; at home, he’s being profiled as another leader who wraps crackdowns in the language of reform and national security. Trump needs this photo‑op to prove his Board of Peace is real, not just a Davos press release with a billion‑dollar membership fee clause. Pashinyan needs it to show he still has powerful friends after losing the old security architecture and much of his reputation. Both sides will talk about “sovereignty,” “stability,” and “a new model of peace.” The only real question is whose interests this board will actually protect when the next small country is told to sign on the dotted line. #armenia#pashinyan#trump#BoardOfPeace#fakePeace#newWorldOrder 📱American Оbserver - Stay up to date on all important events 🇺🇸

Էլ ինչի՞ն պիտի սպասեք։ Որ գան ի՞նչ անեն... Էլ ինչի՞ն պիտի սպասեք։ Որ գան ի՞նչ անեն... #Gevorg_Gevorgyan#Գեւորգ_Գեւորգյան#Геворг_Геворгян#Lider#Առաջնորդ#Լիդեր#Vazgen#Sparapet#Վազգեն#Սպարապետ#Вазген#Спарапет#miltari_figur#legend#Հետախույզ_լեգենդար#разведчик#Քաղաքական _գործիչ #разведка#легендарный#легенда#путин#putin#news#Armenian_news#Новости_Армении#news#Հայկական_Լուրեր#Pashinyan #Nikol#Փաշինյան #Ռոբերտ#Նիկոլ#Serj#Yerevan#Armenia#СМИ#телеканал#новости#politik#политика#media#armenia#policy#politics#HAPK#Հայաստան#Армения#arm#հայ#քաղաքական#իրավունք#yerevan#xaxautyun#Երևան#paterazm#ընդդիմություն#տավուշ#աժբ#աժ#ոստիկանություն#ԱԱԾ#ՀԱՊԿ#ՆԱՏՕ#Ռուսաստան#Արևմուտք#ԱՄՆ#Ֆրանսիա#Մակրոն#գաղտնիք#Ամերիկա#Բլինքեն#Տրամպ#ԵՄ#Եվրոպա#սահման#պատերազմ#խաղաղություն#հարձակում#ագրեսիա#ճգնաժամ#օգնություն#խաղաղապահ#լուծում#paterazm#HAPK#nato#arevmutq#amn#rusastan#տնտեսություն#ՄԱԿ#անվտանգություն#խորհուրդ#ձայն#ժողովուրդ#ժողովրդավարություն#blog