yes.
This commit is contained in:
parent
8b1101ecf6
commit
a43fc433cf
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -101,12 +101,12 @@ 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 !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 !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()
|
||||||
|
|
Loading…
Reference in a new issue