This commit is contained in:
Lukas Schulz 2020-12-20 01:43:02 +01:00
parent a43fc433cf
commit c4e3684117

View file

@ -102,13 +102,13 @@ def drawCanvas():
#scrolling_text(song_name,songinfo_offset_x, songinfo_offset_y+10) #scrolling_text(song_name,songinfo_offset_x, songinfo_offset_y+10)
global currently_scrolling_title global currently_scrolling_title
if(font.getsize(song_name)[0]>160 and not currently_scrolling_title): if(font.getsize(song_name)[0]>160 and not currently_scrolling_title):
x = threading.Thread(target=scrolling_text,args=(song_name,songinfo_offset_x,songinfo_offset_y+10),currently_scrolling_title) x = threading.Thread(target=scrolling_text,args=(song_name,songinfo_offset_x,songinfo_offset_y+10,currently_scrolling_title))
x.start() x.start()
print('scrolling text started') print('scrolling text started')
global currently_scrolling_artist global currently_scrolling_artist
if(font.getsize(artist_name)[0]>160 and not currently_scrolling_artist): if(font.getsize(artist_name)[0]>160 and not currently_scrolling_artist):
y = threading.Thread(target=scrolling_text,args=(artist_name,songinfo_offset_x,songinfo_offset_y),currently_scrolling_artist) y = threading.Thread(target=scrolling_text,args=(artist_name,songinfo_offset_x,songinfo_offset_y,currently_scrolling_artist))
y.start() y.start()
showImage(canvas) showImage(canvas)