Еще один пример с ресурсами.
Читаем картинку из PYZ архива сразу в QImage и далее используем как иконку в GUI.
Без сохранения в промежуточный файл!
Запускать так:
python3 pkg_img.pyz
▫️Из зависимостей только PySide2.
▫️Помним, что это просто ZIP. То есть исходники можно легко достать из архива.
#source
🌎 On Neptune’s largest moon Triton, geysers of nitrogen ice erupt from beneath the surface, shooting plumes up to 8 kilometers high into the tenuous atmosphere. These cryovolcanic eruptions are driven by sunlight warming a thin layer of transparent ice, a unique phenomenon that shapes Triton's mysterious, dark-streaked terrain. ✨
#Triton⚡#cryovolcanism⚡#Neptune
👉subscribe Universe Mysteries
🪐 Pluto's largest moon, Charon, may hold a secret beneath its icy exterior—a hidden ocean of liquid water. Signs of ancient cryovolcanism (volcanoes that erupt ice instead of lava) and fractures in Charon’s surface, revealed by NASA’s New Horizons spacecraft, suggest that internal heat could have once melted the ice deep inside, creating an underground sea in this distant, frozen world. ✨
#Charon⚡#oceans⚡#cryovolcanism⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space
👉subscribe Universe Mysteries
👉more Channels