This commit is contained in:
Lukas Schulz 2020-12-20 01:02:38 +01:00
parent 943fecea0d
commit 741f728320

View file

@ -90,6 +90,7 @@ def drawCanvas():
songinfo.text((songinfo_offset_x,songinfo_offset_y+10), song_name) songinfo.text((songinfo_offset_x,songinfo_offset_y+10), song_name)
songinfo.text((songinfo_offset_x,songinfo_offset_y), artist_name) songinfo.text((songinfo_offset_x,songinfo_offset_y), artist_name)
showImage(canvas) showImage(canvas)
scrolling_text(song_name,songinfo_offset_x, songinfo_offset_y+10)
if(font.getsize(song_name)[0]>160): if(font.getsize(song_name)[0]>160):
x = threading.Thread(target=scrolling_text,args=(song_name,songinfo_offset_x,songinfo_offset_y+10)) x = threading.Thread(target=scrolling_text,args=(song_name,songinfo_offset_x,songinfo_offset_y+10))
x.start() x.start()