Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
Not all carbon is the same - some heats the planet, others help #cool it.
1/. Black Carbon – Soot from incomplete combustion; strong warming effect
2/. Brown Carbon – Biomass smoke aerosols; absorbs sunlight
3/. Blue Carbon – Stored in coastal & marine ecosystems
4/. Green Carbon – Stored in forests, soils, and vegetation
5/. Red Carbon – Biological matter on snow & ice; accelerates melting
6/. Grey Carbon – Fossil fuel–based industrial emissions
🏆Bot of the Day🏆
@NoSpoilersBot
Simple bot that hides spoilers until you click a button!
i.e Use Inline with @NoSpoilersBotHold the door!
#Spoilers#Alert#Cool
🔥 Facebook Mega Packs 🔥
https://telegram.me/addstickers/Fbmegapack01_By_Osmer
https://telegram.me/addstickers/Fbmegapack02_By_Osmer
#Facebook#Cartoon#Cool#Fun#OsmerOmar
🏆 Thanks a lot to Osmer, he make all this Cool Stickers possible! Join his channel as well guys! @osmeromarhn