@sbwalls · Post #39741 · 05.08.2024 г., 10:57
#Rings
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
Пребарај: #rings
@sbwalls · Post #39741 · 05.08.2024 г., 10:57
#Rings
Hashtags
@cosmomyst · Post #12 · 29.07.2025 г., 18:51
🪐 Hidden deep inside Saturn’s rings, astronomers have discovered tiny moonlets like Daphnis that carve out delicate waves and gaps as they orbit, sculpting the rings’ sharp edges. These miniature moons cause astonishing ripples and wakes, their gravitational dance leaving patterns that shift with every pass. ✨ #Saturn⚡#moonlets⚡#rings 👉subscribe Universe Mysteries
@cosmomyst · Post #749 · 22.04.2026 г., 22:21
🪐 The galaxy Arp 147 shows off one of the universe’s strangest shapes—a bright blue ring of young stars wrapped around a reddish core, formed after a dramatic collision with another galaxy. This kind of "ring galaxy" is extremely rare, created when one galaxy punches through another, sending waves through the gas and sparking new stars to ignite in a perfect circle, making Arp 147 a cosmic example of how galactic crashes can sculpt extraordinary structures. ✨ #galaxies⚡#collisions⚡#rings⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels
@cosmomyst · Post #501 · 16.11.2025 г., 12:21
🪐 The galaxy NGC 922, located about 157 million light-years away in the constellation Fornax, sports a dramatic ring-shaped structure that formed after it collided with a smaller galaxy. This "collisional ring galaxy" features a bright, blue ring of new stars encircling its core, revealing the powerful effects of galactic crashes and creating a cosmic shape rarely found in the universe. ✨ #galaxies⚡#rings⚡#collisions⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels
@cosmomyst · Post #687 · 18.02.2026 г., 12:21
🪐 The galaxy Hoag's Object, located about 600 million light-years away in the constellation Serpens, is a stunning example of a ring galaxy—a nearly perfect circle of bright blue stars surrounding a yellow core. This puzzling shape is believed to have formed when another galaxy passed through Hoag's Object, disrupting its stars and creating the iconic cosmic ring, a form almost never seen among the billions of known galaxies. ✨ #galaxies⚡#serpens⚡#rings⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels
@cosmomyst · Post #603 · 05.01.2026 г., 12:21
🪐 Saturn’s rings are made mostly of icy particles ranging from the size of grains of sand to mountains, but what’s remarkable is that these rings are incredibly thin—often only about 10 meters thick compared to their width of up to 282,000 kilometers. Despite their vast size, the rings would still fit comfortably within the gap between Earth and the top of our atmosphere if laid flat. ✨ #Saturn⚡#rings⚡#giants⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels
@cosmomyst · Post #103 · 09.08.2025 г., 00:11
🪐 The giant planet Saturn is the only world in our solar system with rings visible from Earth through even a small telescope, but Saturn is not alone—Jupiter, Uranus, and Neptune each have their own faint and delicate ring systems. Unlike Saturn’s bright icy rings, the rings around Jupiter, Uranus, and Neptune are darker and mostly made of dust, making them nearly invisible except with powerful spacecraft or specialized equipment. ✨ #Saturn⚡#rings⚡#Uranus⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries
@sucai891 · Post #2092 · 07.02.2026 г., 13:17
#戒指#珠宝#购物#rings#shopping
@cosmomyst · Post #236 · 07.09.2025 г., 13:11
🪐 The giant planet Saturn is so light for its size that if you could find a big enough pool of water, it would float—its average density is less than water’s! Saturn's stunning ring system, made mostly of chunks of ice and rock, stretches out more than 280,000 kilometers from the planet, dwarfing the distances between many of its moons. ✨ #Saturn⚡#rings⚡#density⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries