Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
🚨 Freedom for Palestinian journalist Mustafa Ayyash 🚨
Austria is forcibly detaining Mustafa Ayyash since his arrest, without any judicial ruling, and has disabled his social media accounts to silence his voice.
A Palestinian journalist, a voice for Gaza and Palestine, now needs our voices.
📢 We demand immediate disclosure of his safety and his immediate release!
#Prisoners
#FreedomForMustafaAyyash
#ExecutionOfPalestinianPrisoners
#PrisonersExecutionLaw
O Allah, grant relief to all Muslim prisoners and restore their freedom and safety swiftly, not delayed.
#Prisoners
#FreedomForMustafaAyash
#ExecutionOfPalestinianPrisoners
#ExecutionOfPrisoners
#FreeMustafaAyash
#FreedomForMustafaAyashFromAustrianPrisons
O Allah, grant relief to all Muslim prisoners, and restore to them freedom and safety without delay.
#Prisoners
#FreedomForMustafaAyyash
#ExecutionOfPalestinianPrisoners
#PrisonersExecutionLaw
#freemustafaayash
#FreedomForMustafaAyyashFromAustrianPrisons
#ExecutionLaw
Be Daraa, protecting the prisoners and those released.
#PrisonersAndReleasedFriday
#PrisonersAreARedLine
#WeWillOpenOurAlAqsa
#SaveThePrisoners
#Prisoners
#FreedomForMustafaAyash
#ExecutionOfPalestinianPrisoners
#ExecutionOfPrisoners
#FreeMustafaAyash
#FreedomForMustafaAyashFromAustrianPrisons