@QuietWorld · Post #7102 · 24.12.2019 г., 01:35
🗾 How often we fail to realize our good fortune in living in a country where happiness is more than a lack of tragedy. #quotes#gratitude @quietworld🍃
Hashtags
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
Пребарај: #gratitude
@QuietWorld · Post #7102 · 24.12.2019 г., 01:35
🗾 How often we fail to realize our good fortune in living in a country where happiness is more than a lack of tragedy. #quotes#gratitude @quietworld🍃
Hashtags
@QuietWorld · Post #6773 · 23.10.2019 г., 08:30
🔖 Appreciate where you are in your journey, even if it's not where you want to be; every season serves a purpose. #life#gratitude#wisdom @quietworld🍃
Hashtags
@QuietWorld · Post #6625 · 02.10.2019 г., 03:52
"How cool is it that the same God who created mountains and oceans and galaxies looked at you & thought, the world needed one of you, too." #quotes#reminder#gratitude @quietworld🍃
Hashtags
@QuietWorld · Post #6904 · 14.11.2019 г., 14:55
#positivity#gratitude @quietworld🍃
Hashtags
@QuietWorld · Post #6811 · 28.10.2019 г., 13:01
We love those people who give with humility, or who accept with ease. #kindness#gratitude @quietworld🍃
Hashtags
@QuietWorld · Post #7145 · 14.01.2020 г., 00:32
Life is Simple First, Don't bother with other people's lives, no need to comment much, no slander here and there, no need to make fun of it.. Second, Live within your means. Don't torture yourself just to follow trends or impress people. Third, Just enjoy your life and be the best you can be. Be grateful for what you have, and do what you want. Fourth, Don't listen to what people say. Even if that person insults you. Just remember, you didn't ask that person to feed you anyway. Have a blessed day ☺️🌻 #life#gratitude#attitude @quietworld🍃
Hashtags
@the_life_tips · Post #16090 · 11.05.2025 г., 04:30
Happy Mother's Day!🤰🤱🎉 Today, we celebrate the strength, wisdom, and unconditional love of all mothers. A mother is not just someone who gives life, but someone who inspires it. She teaches us resilience through her sacrifices, courage through her actions, and love without limits. Take a moment to appreciate the woman who shaped your beginnings. And if you're striving for greatness—remember, behind every strong person is often a mother who believed in them first. Honor her. Thank her. Make her proud. #MothersDay#Gratitude LIFE TIPS✅️
Hashtags
@news_and_tips · Post #825 · 21.01.2023 г., 02:30
Hello 👋 everyone! Today is my birthday🍰 and I just wanted to take a moment to thank each and every one of you 🫵 for being a part of my journey. Your support and encouragement means the world to me❣. I'm excited to continue creating content and sharing it with you all. Here's to another year of growth and adventure! Cheers! 🥂 #birthday#gratitude
Hashtags
@QuietWorld · Post #6821 · 30.10.2019 г., 06:30
"I don't have to chase extraordinary moments to have happiness – it's right in front of me if I'm paying attention & practicing gratitude." #happiness#gratitude#reminder @quietworld🍃
Hashtags
@QuietWorld · Post #7696 · 25.11.2020 г., 00:45
Simple Pleasures in Life #life#gratitude#beauty @quietworld🍃
Hashtags
@QuietWorld · Post #7181 · 04.02.2020 г., 07:41
when life gets hard, count your blessings.. it might not solve all your problems, but it'll help you go through the hard times easier and better..🍃 #afterthoughts#thoughts#gratitude#attitude @quietworld🍃
@QuietWorld · Post #6856 · 04.11.2019 г., 13:33
Appreciate where you are in your journey, even if it's not where you want to be - because every season serves a purpose. #life#quotes#assurance#gratitude#happiness @quietworld🍃