Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
🎙️WEEK 9 | LIVE GEOPOLITICAL DISCUSSION
Who Defines Ethiopia?
State Formation, Violence & the Clash Between Aithiopology vs Ethiopology
🔹 Did Ethiopia lack legitimacy at its birth—or is it being judged through Western theories that were never meant for ancient civilizations?
🔹 This live discussion critically examines recent remarks by Ethiopia’s Foreign Minister, challenges the social contract myth, and explores Ethiopia’s state formation through its own historical and civilizational lens.
📅Jan. 02, 2026
🕕8:00–10:00 PM EST | ከምሽቱ 2:00–4:00
🎙️Host: ኢትዮጵያ ትቅደም | Ethiopia First
🗣️Guest: Alexander Yohannes — Red Nile Media
🎛️Moderator: Sheralin
📡Ethiopia First. Always.
🔴RedNile Media
👇Join ኢትዮጵያ ትቅደም Telegram Channel
https://t.me/+AAE_Pc8aWTczYTA0
#Ethiopia#Geopolitics#Ethiopology#Aithiopology#StateFormation#RedNileMedia#EthiopiaFirst
🎙️WEEK 9 | LIVE GEOPOLITICAL DISCUSSION
Who Defines Ethiopia?
State Formation, Violence & the Clash Between Aithiopology vs Ethiopology
🔹 Did Ethiopia lack legitimacy at its birth—or is it being judged through Western theories that were never meant for ancient civilizations?
🔹 This live discussion critically examines recent remarks by Ethiopia’s Foreign Minister, challenges the social contract myth, and explores Ethiopia’s state formation through its own historical and civilizational lens.
📅Dec 19, 2025
🕕8:00–10:00 PM EST | ከምሽቱ 2:00–4:00
🎙️Host: ኢትዮጵያ ትቅደም | Ethiopia First
🗣️Guest: Alexander Yohannes — Red Nile Media
🎛️Moderator: Sheralin
📡Ethiopia First. Always.
🔴RedNile Media
👇Join ኢትዮጵያ ትቅደም Telegram Channel
https://t.me/+AAE_Pc8aWTczYTA0
#Ethiopia#Geopolitics#Ethiopology#Aithiopology#StateFormation#RedNileMedia#EthiopiaFirst