Для тех кто пишет расширения на 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
Hillary Clinton, as a teen in the early 1960s, asked NASA how to become an astronaut. She was told women could not join the program. NASA confirms this. Women were first allowed to be astronauts in 1978.
🚀📩👩🚀
@googlefactss
#facts#history#space#NASA#HillaryClinton
Quand le narratif s’effondre : les élites face à l’éveil mondial
Ils pensaient tout contrôler.
Les récits, les élections, les crises, la peur.
La défaite d’Hillary Clinton face à Trump a marqué une rupture brutale : pour la première fois, le narratif dominant leur a échappé.
Depuis, rien ne semble pouvoir arrêter la perte de contrôle :
COVID, géopolitique, OTAN, censure, médias… chaque événement fissure un peu plus le récit officiel.
Ce que certains appellent « complot » ressemble de plus en plus à un réveil collectif.
Les peuples questionnent, doutent, recoupent.
Et quand un narratif s’écroule, le retour de bâton peut être aussi imprévisible que puissant.
Le monde ouvre les yeux.
La question n’est plus si, mais jusqu’où.
#Médias#Géopolitique#Trump#HillaryClinton#OTAN#COVID
#Europe#france#information#usa#russie
📰 House Cancels Contempt Vote as Clintons Agree to Testify on Epstein
The House Oversight Committee has scrapped its planned criminal contempt vote against Bill and Hillary Clinton — not because Republicans backed down, but because the former president and former secretary of state finally agreed to testify in the Jeffrey Epstein investigation. Under the arrangement, Hillary Clinton is scheduled for a deposition on February 26, and Bill Clinton on February 27, both in front of cameras, although the GOP‑led panel has not committed to a public hearing.
Republican Chairman James Comer framed the move as a surrender.
“Once it became clear that the House of Representatives would hold them in contempt, the Clintons completely caved,”
he said. The probe centers on the “horrific crimes” of Epstein, the convicted sex offender who died in prison in 2019, and his longtime associate Ghislaine Maxwell. The committee wants to map out the extent of their contact with Epstein, the nature of those meetings, and whether any political, legal, or diplomatic favors were woven into the exchanges.
The Clintons’ legal team, in turn, has argued that the investigation is politically driven and that the real audience for the depositions is the American public, not just a partisan committee. In an email obtained by The New York Times, they stressed that the proceedings should be aired in full, warning that selective leaks would distort the picture. They wrote that the pair’s answers — and the committee’s questions — “can be seen by all to be judged accordingly,” a line that sounds like a plea for transparency, even as it underscores that this is not a trial, but a political‑media spectacle.
For the Clintons, the fight is no longer just about legal exposure. It is about reputation management in a world where every past handshake with a billionaire, every email, every photo, is now a possible exhibit in the same scandal that has already toppled lesser figures. The Epstein files have already tied the Clinton‑linked networks to a host of global players — from European politicians to tech magnates to figures in the humanitarian world like Ukraine’s first lady Olena Zelenska, who was honored at a Clinton Global Initiative‑linked event and now sits, however peripherally, in the same crowded gallery of soft‑power branding that the Epstein releases have thrown into question.
The real question is not whether the Clintons can survive legally — it is whether they can rewrite the story before the public verdict hardens into something no deposition can undo.
#Epstein#Clinton#HouseOversight#Comer#BillClinton#HillaryClinton#meToo#scandal#Ukraine#Zelenska#NYTimes
📱American Оbserver - Stay up to date on all important events
🇺🇸
https://x.com/SavinoBalzano/status/1816093217093193735?t=CTZ85DyoLPciXF_J96bXrw&s=19
Davvero Kamala rappresenta l'ultima speranza, l'ultima spiaggia, l'estremo tentativo di resistere: non lo è però per il popolo americano e tantomeno per i popoli del mondo occidentale. Lo è per una élite decadente e guerrafondaia che se la sta facendo sotto: se arriva #DonaldTrump, per loro i giochi sono davvero finiti.
È un circo grottesco, una farsa: non so cosa stia accadendo negli #USA e cosa si dica da quelle parti. Sono certo che il servilismo della nostra "informazione", della nostra "stampa", dei nostri opinionisti e dei nostri commentatori sia tale che la metterebbe persino in imbarazzo, #Kamala, se sapesse come sbavano e slinguazzano dalle nostre parti. Una sorta di #Draghi al femminile, così la trattano e la omaggiano.
Si affannano nell'argomentare che #Biden si sarebbe tirato indietro per senso dello stato: la verità è che l'hanno messo da parte perché, per quanto comodamente manovrabile, era ormai imbarazzante e totalmente impresentabile. Non lo ammetteranno mai perché lo hanno esaltato negli anni, eletto a grande statista, sostenendo quanto giuste fossero le sue scelte nella gestione delle crisi internazionali, nonostante i fallimenti inanellati uno dietro l'altro. E poi se ammettessero che #JoeBiden è completamente bollito, fuso, come accettare che resti a comandare dalla Casa bianca?
E adesso, nell'eleggere #KamalaHarris a donna dell'anno, provano a far apparire #Trump vecchio, stanco, attempato: loro! Gli stessi che leccavano gli stivali del vecchio Joe, quello che stringeva la mano ai fantasmi e si accomodava su sedie invisibili.
E #Harris ti viene raccontata come una che non hanno visto arrivare, un po' come una #Schlein un po' più presentabile o come una #Salis ancora più presentabile: si costruisce il personaggio, pian pianino, facendo leva su elementi tanto romanzati quanto ininfluenti.
È donna e quindi farà del bene alle donne: quante cose buone hanno fatto, dopotutto, #VonderLeyen e #Lagarde, per le donne. Tante quante ne avrebbe fatte #HillaryClinton e tante quante ne farebbe Kamala che ora è in testa in tutti i sondaggi (i loro "sondaggi").
È di colore, una sorta di american #Soumahoro, e giù li a ricamare e ricamare. Come se un Presidente di colore non ci fosse già stato da quelle parti, tale #Obama, e non avesse bombardato mezzo mondo dopo aver finto di fare la predica ai #Bush.
E la cesura deve essere scavata a fondo tra la nuova eroina radical e il Presidente in carica, più a fondo che sia possibile, nel ridicolo tentativo di far dimenticare alla gente che lei ne era la vice e ne condivideva ogni scelta.