Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
#BAKE/USDT analysis :
#BAKE is currently retracing towards the 200 EMA. The price is expected to retest this moving average before continuing its bearish momentum. The current level presents a favorable opportunity for a long entry.
TF : 2h
Entry : $0.1507
Target : $0.1700
SL : $0.1414
#BAKE/USDT analysis :
The price is in an uptrend, forming higher highs (HHs) and higher lows (HLs) above the 200-period exponential moving average (200 EMA). The price is expected to bounce back from this level and continue its bullish momentum, aiming to test the previous swing high.
TF : 1h
Entry : $0.2783
Target : $0.2929
SL : $0.2705