Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
🎉🎉 2,000 NFT Transactions Completed! 🎉🎉
The SingSing community is ON FIRE 🔥💎! Huge shoutout to all our karaoke tycoons making waves in the marketplace 🌟
Ready for more? Let’s keep the momentum going! 🚀🎤
#SingSingTycoon#NFTMilestone#KaraokeEmpire
🎤Announcement | Chat | X (Twitter) | Website | Game
🎉 Cheers to 30,000 NFT Transactions! 🎉
We’ve hit an incredible milestone thanks to our amazing community! 🚀 Here’s to more trades, more NFTs, and even bigger achievements ahead! 🔥
Thank you all for being part of this journey! 💎
#SingSing#NFTMilestone#30K
🎤Announcement | Chat | X (Twitter) | Website | Game
🎉10,000 NFT Transactions on SingSing Tycoon Marketplace!🎉
A huge thank you to our amazing community for making this milestone possible!
🚀 Your support keeps driving us forward, and we can't wait to see what’s next!
Here’s to many more NFTs and exciting moments ahead! 💥
#SingSingMarketplace#NFTMilestone#10KTransactions#Thank
🎤Announcement | Chat | X (Twitter) | Website | Game