Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
🌊Time to set exciting sail! 🏁
The Slex Team is thrilled to announce that we'll join the Aegean 600 race from 7 - 15 July 2023! ⛵️ This is not just about competition but about embracing the challenge and spirit of sailing.
🐳600 nautical miles, non-stop, in the dazzling blue Aegean Sea. We're excited to be part of a highly-rated and "must-do" race in the sailing world🌍
🌠We don't just innovate in the financial world but also ride the waves of excitement and challenge too! 🚀 Stay tuned for more updates on the Aegean 600 race adventure! #SLEXSailing#Aegean600
Email | Telegram | Reddit | Facebook | Instagram | Medium | Linkedin | Twitter
🌊 SLEX sails blew in the wind, and our hearts united!🏁
🌠The SLEX Team has finished on an extraordinary odyssey, sailing the Aegean 600 race with unwavering team spirit! ⛵️💨
🌟We conquered 600 nautical miles, uninterrupted, amidst the mesmerizing blue Aegean Sea. We danced with the waves, immersed in breathtaking scenery, and bonded as a crew 🐳🌊
🚀 We also continue to embrace challenges with boundless enthusiasm to revolutionize the crypto industry, so stay tuned!🏅
#SLEXSailing#Aegean600#TeamSpirit
Email | Telegram | Reddit | Facebook | Instagram | Medium | Linkedin | Twitter