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

Резултати

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

Пребарај: #testing

当前筛选 #testing清除筛选
IT Masters

@ITmastersuz · Post #11664 · 28.09.2024 г., 04:56

S24 vs 15 Pro Max batareya sinovi 🔥 🔥 - Samsung S24 👍 - iPhone 15 Pro Max 👉Bizning barcha loyihalar | #testing

Hashtags

Momogram

@momogram_update · Post #1285 · 16.04.2026 г., 03:57

#testing v12.6.4 cb9a1daa95 r1128 Fixed: - Content in ChatEditTypeActivity not aligned Misc: - APK signature changed - nekox.messenger.broken is now momo.gram Note: In general, secret chats will be lost when you switch between apps starting from the last build. Momogram contains a secret chat backup/restore helper that can partially mitigate this problem. The contents of secret chats can be migrated to the new Momogram release (view-only; you still have to create a new secret chat for future messages). Note that this functionality isn’t guaranteed. Make sure you don’t uninstall the old build before confirming the content is properly restored on the other side. Steps to migrate: - Open Momo account settings with previous build - Tap on "Backup Secret Chats" - Enter a password - Share it to yourself (Saved Messages) - Install this build - Tap on the file you shared to yourself - Enter the password you specified earlier and press OK PS. While the exported backup is always encrypted, it's advised to delete the backup as soon as you done with the migration. PPS. To prevent issues, the backup file created is restricted to be used with the same upstream version, try to restore on a different version will be resulted in decrypt error

Hashtags

Momogram

@momogram_update · Post #1275 · 10.04.2026 г., 13:04

#testing v12.6.4 899700cb58 r1127 Fixed: - A typo in Momo settings - Duplicated share button in custom tab UI for certain browsers - (unverified) Random ANR & crash fix

Hashtags

Momogram

@momogram_update · Post #1264 · 07.04.2026 г., 13:08

#testing v12.6.4 6a8da4a514 r1126 Added: - Randomize attached file name (Note. names of files with existing cache won't be randomized) - Hide AI button in edit text field Fixed: - Details button not showing for some messages - Repeat scheduled message not hidden for non-premium users - New Telegram translate UI (TranslateAlert3)

Hashtags

Momogram

@momogram_update · Post #1254 · 06.04.2026 г., 15:17

#testing v12.6.3 013d69a41f r1125 First 12.6.3 test build Added: - Disable pull down to show search bar at chat list (thx Nagram) Misc: - Abandon outdated local Chinese translations (replaced with official beta language pack)

Hashtags

Momogram

@momogram_update · Post #1244 · 03.04.2026 г., 15:02

#testing v12.5.1 b043950be7 r1124 Added: - Active session checker to check if there's active session of potentially malicious clients (Please consider share API ID from experimental settings if you get the warning message) Fixed: - Passkey login for Bitwarden (Thx Nagram) - Edit/Promote admin in groups

Hashtags

Momogram

@momogram_update · Post #1193 · 23.02.2026 г., 09:47

#testing v12.4.1 6ecd8a6547 r1120 Added: - Hide bottom navigation tabs (Special Thanks: tehcneko) Fixed: - Send button size/position in chat list when forwarding Misc: - Close search settings by taping on bottom tab - Move appearance settings to a separate page - Show proxy in chat list menu

Hashtags

Momogram

@momogram_update · Post #1188 · 21.02.2026 г., 10:40

#testing v12.4.1 339a548ad2 r1119 Added: Switch account by long click on title Basically usable now, may still have some minor bugs, but most annoying glitches were fixed, thanks for everyone helped testing

Hashtags

123•••56
ПретходнаСтраница 1 од 6Следна