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

Резултати

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

Пребарај: #celebrities

当前筛选 #celebrities清除筛选
Kursiv Uzbekistan (Eng)

@kursivuzeng · Post #2674 · 27.02.2026 г., 06:53

🌟 TIME Unveils 2026 Women of the Year List 👩 TIME has named 16 influential women from entertainment, sports, business and activism as its 2026 Women of the Year, celebrating their contributions to equality and social progress. 🎬 Honourees include actor-singer Teyana Taylor, Lucy Liu, Sheryl Lee Ralph, filmmaker Chloé Zhao, musician Brandi Carlile, and Olympic champion Sydney McLaughlin-Levrone. Authors, activists, and business leaders such as Mel Robbins, Mariska Hargitay, Amy Sherald, Reshma Kewalramani, Kecia Steelman, and Reshma Saujani are also featured. Humanitarian figures like Isata Dumbuya, Sister Norma Pimentel, Safeena Husain, and Mahnoor Omer are recognised for their grassroots impact. Read more on the website #Celebrities

Hashtags

Bali News

@balinews · Post #310 · 03.02.2025 г., 11:06

🎤 Usher feels happy in Bali 😎 R'n'B singer Usher visited Bali and called himself the happiest man in the world. 📱 In one of his latest posts, the rapper shared his joy of being in Bali and said he was enchanted by the island of gods. 👏 Subscribers supported him in high appreciation of the island and its beauties. @BaliNews #celebrities

Hashtags

Bali News

@balinews · Post #54 · 21.05.2024 г., 09:30

✈️Elon Musk flew to Bali for the first time to launch Starlink Photos of the founder Elon Musk in a traditional Balinese shirt and frangipani necklace have already traveled around the world. On the day of his arrival, he had time to participate with the country's President Joko Widodo in the opening of the World Water Forum and admire the nature of Bali. I'm amazed by the mangrove trees and this huge amount of greenery around, it's really cool. shared the Tesla founder did what he came for – he tested the Starlink internet service. @BaliNews #celebrities

Hashtags

Bali News

@balinews · Post #49 · 16.05.2024 г., 11:05

😮Elon Musk flies to Bali to unveil Starlink service SpaceX founder Elon Musk will be in Indonesia for the launch of the company's Starlink internet satellite service in the country on May 19. This was announced by the Minister for Investment, Mr. Luhut. The event is expected to take place alongside President Joko Widodo on the sidelines of the World Water Forum, which kicks off on the island on Saturday, May 18. Since the beginning of the year, the heads of two of the world's biggest technology companies have already visited Indonesia, promising major investments in the country. They are Apple CEO Tim Cook and his Microsoft counterpart Satya Nadella. @BaliNews #celebrities#events

Bali News

@balinews · Post #549 · 09.01.2026 г., 09:35

⭐️It looks like a movie featuring Gerard Butler may be filming in Ubud 📸 The actor has been spotted several times in the city center, calmly walking around, chatting with people, and taking photos with fans — without security or a film crew, dressed in casual everyday clothes, far from the usual Hollywood glamour. 👍 The very fact that a Hollywood star of this level can freely walk around Ubud and interact with locals has once again fueled conversations about Bali as a place where celebrities can be “just people,” rather than targets for paparazzi. What do you think — is this a film shoot, or is Butler simply vacationing on the island? #celebrities#Ubud@BaliNews

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