Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
#COTI/USDT analysis :
#COTI is currently forming higher highs (HHs) and higher lows (HLs) along the trendline. The price is consolidating above this trendline, suggesting a potential bounce back and a test of higher levels.
TF : 1W
Entry : $0.10200
Target : $0.18200
SL : $0.07670
#COTI/USDT analysis :
#COTI is in an uptrend, forming a structure of higher highs (HHs) and higher lows (HLs). The price has broken out and successfully retested the trendline, continuing its bullish trajectory. Currently, the price is trading above a minor resistance zone, which has now become a buy zone. It is anticipated that the price will rise further and test higher levels.
TF : 1H
Entry : $0.14450
Target : $0.16145
SL : $0.13292