Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
#DIA/USDT analysis :
#DIA is in an uptrend, forming higher highs (HHs) and higher lows (HLs). The price has retraced and tested the support zone, rebounding from that level. It is expected that the price will continue its bullish momentum from the current level and test the previous highs.
TF : 1W
Entry : $0.5230
Target : $1.2800
SL : $0.3480