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

Резултати

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

Пребарај: #gatto

当前筛选 #gatto清除筛选
TONlines – News

@tonlines · Post #7346 · 23.05.2025 г., 14:36

Gatto Official Channel: Weekend Tournament and PvP Event #Gatto#TON Gatto is hosting a weekend tournament alongside a PvP event against its developers, launching on May 23. Players will have the chance to win various rewards by competing in both events, with the tournament ending on May 26 and the PvP event concluding on May 23. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #7213 · 14.05.2025 г., 14:31

Support Gatto in Telegram Apps Center Voting #Telegram#Gatto Gatto | Official Channel encourages users to vote for the Gatto app in the Telegram Apps Center. By participating, users can win Telegram Gifts or Telegram SBT and help raise their favorite app to the top. Source: link @tonlines

TONlines – News

@tonlines · Post #7429 · 29.05.2025 г., 09:23

⚡️Gatto Announces Temporary NFT Feature Downtime #NFT#Gatto Gatto | Official Channel (18+) informs users of a temporary halt to NFT functionality, citing ongoing technical resolutions which will last more than a day. Users are advised not to purchase Gattomon Eggs created between 5:00 p.m. and 6:30 p.m. UTC due to potential game recognition issues. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #7427 · 28.05.2025 г., 20:01

⚡️Gatto: NFT Minting Temporarily Unavailable #NFT#Gatto Gatto announces that NFT minting is currently on hold. Users are advised not to create NFT pets and eggs to avoid permanent loss. Updates will be shared once technical work concludes. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #7697 · 03.12.2025 г., 15:46

Gatto | Official Channel: Creative Contest Announcement #Gatto#GTON Gatto | Official Channel has announced a creative contest to celebrate a birthday, inviting talented individuals to participate by creating drawings, stories, and crafts dedicated to Gatto. Participants are categorized by age, with the chance to win $GTON rewards. Submissions are open until December 8th. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #6778 · 15.04.2025 г., 13:50

⚡️Gatto Official Channel: PvP Battle Event with Rewards #GTON#Gatto The Gatto Official Channel invites players to join a special PvP event starting at 14:00 UTC. Participants who defeat the GTeam in consecutive battles can earn various rewards, including Silver Coins, Legendary Gattoboxes, and more. The event takes place exclusively on the European server and runs until April 15, 15:00 UTC. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #7394 · 27.05.2025 г., 18:20

⚡️Gatto: Temporary Unavailability of the Game #Gatto#game The Gatto team has announced that the game is currently unavailable due to server issues. They are actively working to resolve the problems, and the game will be restored soon. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #7267 · 18.05.2025 г., 19:12

Gatto: Upcoming Technical Works Announced #Gatto#game Mr. Chipmunkus will be performing technical work on the Gatto game starting at 20:30 UTC. Although the game will remain accessible, players might encounter some bugs during this period. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #7118 · 08.05.2025 г., 19:37

Expand Your Play Area with Gatto Official Channel! #Gatto#game Gatto Official Channel introduces a new opportunity to expand the playing field from 40 to 42 squares by inviting friends. Players can unlock new plain and ice biomes with eggs after their friends complete training by Sage Moc. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #6987 · 30.04.2025 г., 14:43

Technical Update at Gatto | Official Channel #Gatto#game Gatto | Official Channel has scheduled technical work with Mr. Chipmunkus. Players may experience some bugs until the game operations return to normal. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #6955 · 29.04.2025 г., 08:12

Gatto: Ongoing Technical Works #Gatto#game Gatto is undergoing technical maintenance by Mr. Chipmunkus. Though the game remains accessible, players might encounter some bugs until everything is fully restored. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #6925 · 24.04.2025 г., 12:42

⚡️Gatto: Temporary Downtime for Technical Maintenance #Gatto#game Gatto | Official Channel announces upcoming technical maintenance by Mr. Chipmunkus after mine completion. The game will be unavailable today from 13:00 UTC. Source: link @tonlines

Hashtags

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