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

Резултати

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

Пребарај: #emirati

当前筛选 #emirati清除筛选
L'Osservatorio - Italia

@Osservatorioitaliano · Post #25015 · 03.04.2026 г., 14:11

#Italia ❗️BREAKING ANSA - Blitz della Presidente del Consiglio Giorgia #Meloni (#FdI|ECR) nel Golfo. La ‘premier’ è appena atterrata a Gedda e nei prossimi giorni incontrerà i principali leader della zona e visiterà #ArabiaSaudita, #Emirati e #Qatar. Fonti di Palazzo Chigi sottolineano che la missione a sorpresa della premier mira, tra l'altro, al rafforzamento della sicurezza energetica nazionale. Si tratta della prima visita nella regione da parte di un leader di Ue, G20 e Nato dall'inizio del conflitto. Il Golfo rappresenta infatti una fonte cruciale di petrolio e gas per l'Italia e ha un ruolo determinante nell'andamento dei prezzi energetici globali. La missione punta anche a rafforzare le relazioni" con queste nazioni del Golfo e "ribadire il sostegno dell'Italia di fronte agli attacchi iraniani, consolidando al contempo un partenariato strategico sempre più solido. @OsservatorioItaliano

Addis Standard

@addisstandardeng · Post #21281 · 02.02.2026 г., 15:04

News: #Somaliland leader departs for #UAE, seeks deeper ties as regional stakes rise Somalia's northwestern breakaway region of Somaliland President Abdirahman Mohamed Abdullahi departed for the United Arab Emirates on Tuesday, leading a high-level delegation that includes cabinet ministers and senior advisers, his office said. The trip follows a formal invitation from the UAE government, with President Abdirahman Mohamed expected to attend a conference focused on development and intergovernmental cooperation. Officials said he is also scheduled to hold meetings in #Abu_Dhabi with senior #Emirati leaders to discuss strengthening bilateral relations. Talks are expected to center on development projects and investment, areas where the UAE has played a significant role in Somaliland's economy. Emirati logistics firm #DP_World has invested about $442 million in the expansion and ..... https://web.facebook.com/AddisstandardEng/posts/pfbid02vruBZ8aULb9h5RjA2RsY29mzkbAHJ12PxaQznHBY1Zrsq9GGTQzzwa8qRMyK9tUal

Addis Standard

@addisstandardeng · Post #21547 · 27.02.2026 г., 12:38

What #Sudan can teach #Ethiopia as #Eritrea conflict looms As African leaders gathered at the annual #African_Union summit in #Addis_Abeba last week under the seemingly non-urgent theme of “water sustainability,” there was only passing acknowledgement that “silencing the guns on our continent remains a challenge.” Yet the cadence of conflict — and the threat of new war — hung low over the horizon. It never felt proximate enough, however, to darken the mood of the festivities. Ethiopian Prime Minister Abiy Ahmed was keen to show off his clean and modern metropolis, financed and looking like a “mini-me” version of his #Emirati backers in #Dubai. As host of the three-day summit, Abiy’s heads of state guests showed deference by making no mention of his increasingly bellicose calls for sea access — and the indirect threat to Eritrea, its neighbor. Nor was there talk of Asmara’s response….. https://web.facebook.com/AddisstandardEng/posts/pfbid0obN5Kafo8UNTY59yKCGZdnA3LrbsDe5ztUgt28cTAUnTpDGbj4njfoj8yHH63sgnl

Maurizio Vezzosi

@mauriziovezzosi · Post #96 · 26.09.2019 г., 14:28

I recenti attacchi alle raffinerie saudite hanno evidenziato una notevole vulnerabilità delle strutture saudite e posto interrogativi anche sull affidabilità dei sistemi antimissile Patriot – di produzione statunitense – a cui ne è stata affidata la difesa. In questo senso, l’attacco alle raffinerie saudite rappresenta un duro colpo alla credibilità degli Stati Uniti, segnando inoltre un punto di svolta nella guerra dello #Yemen: un conflitto in cui ormai da anni si fronteggiano le forze governative – sostenute da #Arabia Saudita, #Emirati Arabi e #StatiUniti – e i ribelli #Houti sostenuti dall’#Iran. Un conflitto rispetto al quale l’Arabia Saudita non ha, per il momento, ammorbidito la propria linea oltranzista, nonostante le oltre 70.000 vittime già prodotte dal conflitto, la più grave crisi umanitaria attualmente esistente sul pianeta – secondo l’ ONU –, ed un atteggiamento ormai quasi disfattista da parte degli Emirati Arabi. Il mio articolo per l'Atlante geopolitico di Treccani http://www.treccani.it/magazine/atlante/geopolitica/Il_Vicino_Oriente_dopo_gli_attacchi_alle_raffinerie_saudite.html