yes.
This commit is contained in:
parent
23f0b15109
commit
8cad8faae1
1 changed files with 3 additions and 3 deletions
6
main.py
6
main.py
|
@ -56,7 +56,7 @@ token = None #oauth2.SpotifyOAuth(username, scope, client_id, client_secret, red
|
||||||
#token = util.prompt_for_user_token(username, scope, client_id, client_secret, redirect_uri)
|
#token = util.prompt_for_user_token(username, scope, client_id, client_secret, redirect_uri)
|
||||||
|
|
||||||
font = ImageFont.load_default()
|
font = ImageFont.load_default()
|
||||||
clock_font = ImageFont.truetype(font='BebasNeue_Regular_1.otf', size=20)
|
clock_font = ImageFont.truetype(font='BebasNeue_Regular_1.otf', size=40)
|
||||||
|
|
||||||
|
|
||||||
def get_track():
|
def get_track():
|
||||||
|
@ -220,10 +220,10 @@ def main():
|
||||||
|
|
||||||
def drawClock():
|
def drawClock():
|
||||||
while True:
|
while True:
|
||||||
time.sleep(0.4)
|
#time.sleep(0.4)
|
||||||
canvas = Image.new('RGB', (128,64), color = 'black')
|
canvas = Image.new('RGB', (128,64), color = 'black')
|
||||||
clock_text = ImageDraw.Draw(canvas)
|
clock_text = ImageDraw.Draw(canvas)
|
||||||
clock_text.text((20,0), datetime.now().strftime("%H:%M:%S"), font = clock_font, align = "center")
|
clock_text.text((0,20), datetime.now().strftime("%H:%M:%S"), font = clock_font, align = "center")
|
||||||
showImage(canvas, 32, 0)
|
showImage(canvas, 32, 0)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue