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

Резултати

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

Пребарај: #elephants

当前筛选 #elephants清除筛选
Interesting Planet 🌍

@interesting_planet_facts · Post #484 · 02.08.2025 г., 03:22

🌎 Deep in the Congo Basin, the African rainforest elephant forges secret trails through dense jungle, creating “elephant highways” that other animals use. These hidden paths help shape entire forest ecosystems by opening routes for seed dispersal and wildlife movement. ✨ #rainforest⚡#elephants⚡#ecosystems 👉subscribe Interesting Planet

Interesting Planet 🌍

@interesting_planet_facts · Post #1312 · 23.02.2026 г., 22:11

🌎 Elephants communicate using deep rumbles that travel through the ground as seismic vibrations. These low-frequency sounds allow herds to “hear” each other from several kilometers away, even when out of sight. ✨ #elephants⚡#communication⚡#animalbehavior 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #783 · 19.09.2025 г., 20:22

🌎 Elephants use infrasound—low-frequency sounds below human hearing—to communicate over distances of several kilometers. These vibrations travel through the ground and air, letting herds coordinate movements and warn of threats. Elephant infrasound calls can be detected up to 10 km away in open savanna. ✨ #elephants⚡#communication⚡#animalintelligence 👉subscribe Interesting Planet ​

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40697 · 24.02.2026 г., 09:20

Elephants can “listen” with their feet. Their foot pads have special nerve receptors that detect ground vibrations, including very low-frequency infrasound. Vibrations from other elephants’ rumbles or footsteps travel through the ground. Signals move through their bodies to the brain. Vibrations can also reach the inner ear through bone conduction. This helps elephants communicate over long distances and sense distant movement. 🐘🌍👣🔊 [Read more] @googlefactss #Elephants#AnimalFacts#Wildlife#Nature#Science#DidYouKnow

💛The Power of a Mother’s Love In Kruger National Park, South Africa, an elephant cow rescued her calf as it was being swept away by a powerful current. 📹 The touching footage comes from an area affected by severe flooding. The natural disaster caused serious damage to the park’s infrastructure: people were evacuated, and some animals had to fend for themselves. According to park officials, most animals moved to higher ground in advance — but not all managed to escape the danger. 🔗Video: https://t.me/aifonline/177687 #SouthAfrica#Wildlife#Nature#Elephants#MothersLove#KrugerNationalPark

🐘🍊Стадо слонов-воришек в провинции Лимпопо, ЮАР, полакомилось апельсинами, которые перевозил сломавшийся в дороге грузовик. _________________________ 🐘🍊 A herd of opportunistic elephants in Limpopo, South Africa, helped themselves to a feast of oranges transported by a truck that had broken on the road. 📹https://www.youtube.com/watch?v=-i5_brrf1cc #ЮАР#Слоны#Природа#Африка#Животные #SouthAfrica#Elephants#Wildlife#Nature#Africa

🇿🇦Tembe Elephant Park🐘 The park was established in the north-eastern part of South Africa in 1983 to protect elephants migrating between South Africa and Mozambique. 🌍 It opened to visitors in 1991 and is now home to about 250 of the largest elephants in the world. 🏞 If you’re into safaris, you can also spot the rest of the Big Five — 🦁 lions, 🐆 leopards, 🦏 rhinos, and 🐃 buffalo. 🎥 Live video: 👉https://www.youtube.com/watch?v=VUJbDTIYlM4 #SouthAfrica#Nature#Safari#BigFive#Elephants#Tembe#Wildlife#Travel#Africa

🐘Слоны — отличные пловцы, и это занятие им очень нравится! Они способны преодолевать расстояния до 50 км. А ещё они умеют нырять — хобот служит им дыхательной трубкой для «подводного плавания». 🤿 #Слоны#Животные#Природа#ЮАР#ИнтересныеФакты ___________________ 🐘Elephants are excellent swimmers — and they love it! They can cover distances of up to 50 km (30 miles). They also dive skillfully, using their trunks as natural snorkels. 🤿 #Elephants#Wildlife#Nature#SouthAfrica#FunFacts 🎥https://t.me/AfroPouchkine/1459