Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
Curated Crypto | ꘜ
🤑WTF: ETH options open interest just hit a 1.5-year high!
Degens are loading up on longs, while whales are stacking ETH at all-time record pace!
But hedge funds are going mega short - CME ETH futures short positioning just keeps smashing new records!
Green But Red in real life!
#WTF
The suspect attempted to escape an interrogation room by breaking through the wall while no one was watching—only to be caught shortly after.
@Viral_Today / #wtf
Imagine a coffee table that moves around the house by itself—well, you don’t have to anymore because it’s real. It’s just as fascinating as it is creepy.
@Viral_Today / #wtf