This commit is contained in:
Lukas Schulz 2020-12-20 01:42:37 +01:00
parent 8b1101ecf6
commit a43fc433cf

View file

@ -101,12 +101,12 @@ def drawCanvas():
#scrolling_text(song_name,songinfo_offset_x, songinfo_offset_y+10)
global currently_scrolling_title
if(font.getsize(song_name)[0]>160 and !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.start()
print('scrolling text started')
global currently_scrolling_artist
if(font.getsize(artist_name)[0]>160 and !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.start()