From eac5ebc2c6b33875bf3ff661e35946554ab4f7c7 Mon Sep 17 00:00:00 2001 From: Lukas Schulz Date: Sun, 20 Dec 2020 13:31:55 +0100 Subject: [PATCH] yes. --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 3fb204d..b46ab29 100644 --- a/main.py +++ b/main.py @@ -102,7 +102,8 @@ def drawCanvas(): if (cover_art is None): return if(was_playing and not is_playing): - scrollDownSongInfo() + scroll = threading.Thread(target=scrollDownSongInfo) + scroll.start() if(is_playing): canvas.paste(cover_art,(cover_art_offset_x,cover_art_offset_y)) songinfo = ImageDraw.Draw(canvas) @@ -135,7 +136,7 @@ def scrollDownSongInfo(offset_x=0,offset_y=96): songinfo.text((songinfo_offset_x,songinfo_offset_y+11+i), song_name) songinfo.text((songinfo_offset_x,songinfo_offset_y+i), artist_name) showImage(canvas, offset_x, offset_y) - + sleep(0.02) def scrolling_text(text,offset_x=0,offset_y=0):