This commit is contained in:
Lukas Schulz 2020-12-20 00:59:31 +01:00
parent 5a1cea1cc4
commit ed4cfe6c3e

View file

@ -90,7 +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)
print(font.getsize(song_name)[0])
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))
if(font.getsize(artist_name)[0]>160): if(font.getsize(artist_name)[0]>160):