Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
We’ve launched our Chrome Extension❗
🔵We’re excited to announce that AppVerse is now available on the 📱 Chrome Web Store
🔵Explore the best ✉️ Telegram Mini Apps in one place - pin your favorites, discover new ones, and stay ahead of the trend.
🔵All just a click away in your browser.
Try it now ➡️Extension Link
👍 Thank you for being part of our journey, this is just the beginning!
#AppVerse#TelegramMiniApps#ChromeExtension
👋 Introducing AppVerse – the awesome Telegram catalog of mini apps!
🔍 Looking for awesome games or useful tools right inside Telegram?
🙂 Want to discover new mini apps without ads or clutter?
AppVerse:
✉️ A catalog of the best Telegram Mini Apps
✍️ Neatly organized by category: games, utilities, tools
🌐 Direct launch links – no extra steps
🛠 Daily updates and top new picks
Turn your Telegram into an App Store — discover AppVerse now❗
🔗AppVerseBot
Follow, explore, and share with friends ❤️
#AppVerse#MiniApps#TMA#Catalog