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

Резултати

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

Пребарај: #israeli

当前筛选 #israeli清除筛选
MessageInABottle

@mib_messageinabottle · Post #6884 · 22.05.2024 г., 22:11

🇺🇳🇵🇸🇮🇱The amount of gaslighting and lies is pretty insane by the #Israeli supporter here. What happened to the aid workers indeed? @MyLordBebo | Boost us! | X

Hashtags

Addis Standard

@addisstandardeng · Post #21453 · 19.02.2026 г., 12:12

News: #Israeli President Herzog to visit #Ethiopia next week Isaac Herzog is expected to make a one-day official visit to Ethiopia next week, according to Israeli officials, in a move seen as part of expanding diplomatic engagement between the two countries. According to The Times of Israel, Herzog’s visit will include meetings with senior Ethiopian leaders aimed at strengthening political, economic, and cultural cooperation. The trip follows earlier high-level exchanges, including a 2018 visit by former Israeli President Reuven Rivlin, who held talks with Prime Minister Abiy Ahmed and other officials. More recently, Israeli Foreign Minister Gideon Sa’ar visited Addis Abeba in May 2025, meeting Ethiopian Foreign Minister Gedion Timothewos to discuss cooperation in political, economic, and technological sectors. https://www.facebook.com/share/1HGfFwBj8i/

El Pueblo Informa

@EPInforma · Post #35850 · 17.08.2025 г., 12:26

🇮🇱🇺🇸🇬🇧🇪🇺 IMPUNIDAD GARANTIZADA A ISRAEL POR EEUU, REINO UNIDO Y EUROPA El ejército israelí bombardeó a 3 civiles palestinos que estaban rescatando a otro civil herido en el barrio Al-Shujaiya, al este de Gaza. El régimen israelí ni siquiera esconde que extermina civiles desarmados a plena luz del día. #israel#israeli Vía 📱susanagiacaman Síguenos t.me/Epinforma🔁 comparte

HAMAS-ISRAEL WAR

@HAMASW · Post #8497 · 18.04.2024 г., 16:10

⁉️‼️Israel continues to steal! The occupying #Israeli Defense Ministry announced that they transferred 29,000,000 shekels seized during operations in #Gaza to the Israeli Treasury.

People's Press

@PeoplesPress · Post #2295 · 16.03.2024 г., 13:29

💔🇵🇸A little girl in the #Gaza Strip describing the #Israeli war and how it changed her life. "I was beautiful but the war made me ugly" @The Children of Gaza

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3981 · 08.02.2025 г., 13:59

Despite a ceasefire being in place, #Israel didn’t hold back from air striking Lebanon under the guise of “self-defense” and “removing threats”, breaching the ceasefire and continuing its aggression on #Lebanon. Israel attacked Lebanon 855 times during the truce period, killing 43 civilians. Israel also launched 81 ground incursions, 25 artillery bombings, 38 shootings, 37 abductions, 14 raids on houses, and destroyed 3 vehicles. Israel took advantage of the withdrawal period to demolish Lebanese villages. The #Israeli Army performed 282 detonation and bulldozing operations in 38 different villages. Naqoura was 90% destroyed by the end of the withdrawal period.

Addis Standard

@addisstandardeng · Post #22062 · 20.04.2026 г., 05:26

#IDF confirms authenticity of photo showing #Israeli soldier smashing Jesus statue with sledgehammer, pledges investigation after widespread outrage Addis Abeba- The Israeli military says it is investigating an incident involving one of its soldiers after a photo surfaced showing an Israeli soldier smashing a fallen statue of Jesus Christ in the head with a sledgehammer in southern Lebanon. The photo has triggered widespread outrage and condemnation among Christians around the world since it appeared on social media on Sunday 19 April 2026. According to The Times of Israel, the Israel Defense Forces (IDF) confirmed that the photograph depicts one of its soldiers using a sledgehammer to smash the statue while operating in southern Lebanon. Israel’s weeks long military attack in southern Lebanon has flattened entire areas, killing more than 2000 civilians and displacing hundreds of thousands. https://www.facebook.com/share/1AQbRbwxRM/?mibextid=wwXIfr

Hashtags

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3803 · 22.12.2024 г., 10:58

A group of #Israeli soldiers shot a young Syrian man dead, in a first-of-its-kind incident following Israel’s invasion of Southern #Syria. The incident took place in the #Syrian village of Ma’araya, located outside of the Israeli-Syrian buffer zone. The soldiers shot at the man during a protest against the #Israeli presence held by citizens of the village.

ПретходнаСтраница 1 од 5Следна