Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
🗣#REX — Grab Your Tokens from the T-REX Airdrop
🗓 Deadline: May 26
What to do:
✔ Visit the website
✔ Finish the quests
🟠 Rewards are confirmed via Galxe
🟠 Super quick — done in under 2 minutes
☝️ Start trading on Bybit
Crypto Drop Club 👉 SUBSCRIBE
🔥 Airdrop: $Rex
🎁 Competition : Runex gives away $100 in rex coins🤑
🎁 10 winners will each receive 💸100 in #Rex tokens
👥To participate:
🔰Subscribe to the Runex Twitterpage and repost the attached post
🔰Subscribe to Runex Telegram Channel and Chat
🔰In the chat say : "I want a Rex"
🔰Enter your ETH-wallet address on the form or in the chat room
🔗Airdrop Link:Go to airdrop page
⏰ 22 Apr 12 AM (UTC) - 24 Apr 12 AM (UTC)
Disclaimer: Airdrop is 100% free. Don't send any fee or penny for receiving airdrop tokens. Just join airdrop for free!
💧Airdrop :Runex Giveaway💧
📣Complete Task: ➕ 1000 #Runex
🏆 Winners: 200 people will get 100 #Rex each
📅 End date: The contest will end after the start of the official airdrop.
💎Ratings: ⭐️⭐️⭐️
🔛RunexGiveaway Form Click 🔛
🌀 Join Runex group & channel.
🌀 Follow on Twitter, like and retweet the pinned post.
🌀 Submit your ETH Wallet address
📡 Enter your information to the airdrop page.
🗞Note: All airdrop steps should be completed.