Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
¡Atención! 🚨
‼️El ultraderechista, Eduardo Verástegui ha puesto distancia con Trump y su política bélica.
Además, se lanzó con todo contra #BenjaminNetanyahu
"Jamás sería aliado de un régimen sionista genocida liderado por un criminal como Benjamín Netanyahu"
¿Qué opinas de sus palabras? 😱
In an unprecedented move following his shock proposal for the permanent resettlement of the more than two million Palestinians from Gaza to neighboring countries, President Donald Trump announced a controversial plan for the U.S. to take over the Gaza Strip. This statement, made during a press conference with Israeli PM Benjamin Netanyahu, raised eyebrows worldwide. A journalist cornered Trump so he sought Bibi’s help to complete his answer.
#UnitedStates#Israel#DonaldTrump#BenjaminNetanyahu#GazaStrip
Parla il Primo Ministro, #BenjaminNetanyahu, durante la conferenza organizzata da Jewish News Syndicate a #Gerusalemme: "#Israele ha impedito agli aerei iraniani di raggiungere la #Siria prima della cacciata di #Assad".
In his last interview as president of the United States, Joe Biden tells the story of his first meeting with Netanyahu in Israel after October 7. Bibi told Joe: “We did in Gaza what you did in Berlin.”
#UnitedStates#JoeBiden#BenjaminNetanyahu#Israel#Gaza#Palestine
The #ceasfire deal in #Gaza is on the ropes as #BenjaminNetanyahu tries to keep his government from collapsing after #Trump’s buddy #StevenWitkoff reportedly got the Israeli PM to cave.