Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
#FUN/USDT analysis :
#FUN has established a breakout from its trendline after rebounding from the support zone. The price is anticipated to continue rising from its current level and is likely to test the previous swing high.
TF : 4H
Entry : $0.003263
Target : $0.003644
SL : $0.003008
#FUN/USDT analysis :
#FUN is currently consolidating within a resistance zone near the 200 EMA. A price rejection is expected from there, and a continuation of the downtrend is anticipated. Wait for the price to break below the trendline for a short entry.
TF : 2H
Entry : $0.00314
Target : $0.00287
SL : $0.00326