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

Резултати

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

Пребарај: #guterres

当前筛选 #guterres清除筛选
Ultimora.net - POLITICS 24

@Ultimorapolitics24 · Post #51800 · 30.01.2026 г., 19:56

Antonio #Guterres ha avvertito gli Stati membri dell'#Onu di un "imminente collasso finanziario" in una lettera nella quale chiede di "onorare pienamente e tempestivamente i propri obblighi di pagamento" o di "rivedere approfonditamente le regole finanziarie dell'#Onu"; #Guterres sottolinea che "le decisioni di non onorare i contributi obbligatori che finanziano una parte significativa del bilancio ordinario approvato sono state ora annunciate ufficialmente" e afferma che "l'attuale traiettoria è insostenibile. Espone l'organizzazione a un rischio finanziario strutturale e impone una scelta netta: o gli Stati membri accettano una revisione radicale delle nostre regole finanziarie, oppure devono accettare la prospettiva concreta di un collasso". @UltimoraPolitics24

RT en français

@RTenfrancais · Post #80583 · 01.05.2026 г., 14:04

❗️#Afrique : déficit massif L’Afrique fait face à un déficit annuel de financement du développement pouvant atteindre 1,6 trillion de dollars, a déclaré le secrétaire général de l’#ONU António #Guterres lors du forum régional sur le développement durable à Addis-Abeba. Parmi les freins cités : les conflits, la crise de la dette, les taux d’emprunt élevés, les difficultés climatiques et infrastructurelles, la rapide urbanisation et les barrières commerciales. Guterres rappelle aussi les atouts du continent : la zone de libre-échange africaine, les énergies renouvelables, le numérique et une main-d’œuvre jeune. RT en français • Osez questionner !

Addis Standard

@addisstandardeng · Post #21269 · 01.02.2026 г., 13:11

News: #UN, #EU raise alarm over escalating tensions in #Tigray, call for de-escalation and dialogue International actors have voiced serious concern over reported military confrontations and rising tensions in Tigray urging all parties to exercise restraint, uphold peace agreements, and resolve differences through dialogue to avoid a return to broader conflict. The United Nations Secretary-General, António #Guterres, said he is closely following developments in northern Ethiopia, where renewed clashes have contributed to a worsening security environment. In a statement delivered by the Deputy Spokesperson for the Secretary-General, Farhan Haq, the UN chief warned that the situation threatens to reverse the gains made since the Permanent Cessation of Hostilities Agreement was signed in November 2022 and called on all sides to pursue peaceful resolution and rebuild trust. In a parallel statement, earlier on Saturday, the European Union, through its.... Read more: https://addisstandard.com/?p=54881

RT France actualités

@rt_fra · Post #40317 · 01.05.2026 г., 14:04

❗️#Afrique : déficit massif L’Afrique fait face à un déficit annuel de financement du développement pouvant atteindre 1,6 trillion de dollars, a déclaré le secrétaire général de l’#ONU António #Guterres lors du forum régional sur le développement durable à Addis-Abeba. Parmi les freins cités : les conflits, la crise de la dette, les taux d’emprunt élevés, les difficultés climatiques et infrastructurelles, la rapide urbanisation et les barrières commerciales. Guterres rappelle aussi les atouts du continent : la zone de libre-échange africaine, les énergies renouvelables, le numérique et une main-d’œuvre jeune. RT en français • Osez questionner !

Libertà è ragione

@libertaeragione · Post #4139 · 25.03.2024 г., 15:02

#ONU#Gaza#Israele Segretario Generale ONU António #Guterres (#PS|S&D): "Il Consiglio di Sicurezza ha appena approvato una risoluzione tanto attesa su Gaza, chiedendo un cessate il fuoco immediato e il rilascio immediato e incondizionato di tutti gli ostaggi. Questa risoluzione deve essere attuata. Il fallimento sarebbe imperdonabile." @OsservatorioEsteri

Libertà è ragione

@libertaeragione · Post #4254 · 02.10.2024 г., 11:30

#Israele#ONU Ministro degli Esteri Israel #Katz (#Likud|ECR): "Oggi ho deciso di dichiarare il Segretario generale dell'ONU Antonio #Guterres una persona non desiderata in Israele e di vietargli l'ingresso in Israele. Coloro che non sono in grado di condannare senza ambiguità l'attacco criminale dell'Iran contro Israele, come hanno fatto quasi tutti i paesi del mondo, non sono degni di calpestare il suolo israeliano. Si tratta di un segretario generale che non ha denunciato il massacro e i crimini sessuali perpetrati dagli assassini di Hamas il 7 ottobre, e non ha portato a decisioni che li dichiareranno organizzazione terroristica. Un segretario generale che dà una spinta ai terroristi, stupratori e assassini di Hamas, Hezbollah, gli Houthis, e ora la nave madre del terrorismo globale, l'Iran, sarà ricordato come una macchia nella storia dell'ONU. Israele continuerà a proteggere i suoi cittadini e manterrà il suo status nazionale e la sua dignità con o senza Antonio Guterres." @OsservatorioEsteri