Sep-18-2020, 08:40 AM
(This post was last modified: Sep-18-2020, 08:48 AM by ATARI_LIVE.)
Okay, here my code is WORKED for me here:
AND
https://www.1001fonts.com/ticking-timebomb-bb-font.html
If you think my code need change to better, please do so and show me, I can look at it and learn what's different. Thanks again!!!
Here what the screen looks like:
from tkinter import * import time import curses win = Tk() win.attributes('-fullscreen', True) win.configure(bg='black') win.config(cursor="none") T = StringVar() S = StringVar() G = StringVar() C = StringVar() fgc="yellow" bgc="black" T.set(time.strftime("%I %M")) lab1=Label(win, textvariable=T, font=('DIGITAL DISMAY',600),fg=fgc, bg=bgc).place(x=130,y=100) lab2=Label(win, textvariable=S, font=('DIGITAL DISMAY',60),fg=fgc, bg=bgc).place(x=1790,y=710) lab3=Label(win, textvariable=G, font=('TICKING TIMEBOMB BB',60),fg=fgc, bg=bgc).place(x=1790,y=210) lab4=Label(win, textvariable=C, font=('TICKING TIMEBOMB BB',900),fg=fgc, bg=bgc).place(x=800,y=10) def presskey(): win.bind('<Escape>', quit, win.config(cursor='')) def update_clock(): T.set(time.strftime("%I %M")) n=int(time.strftime("%S")) G.set(time.strftime("%P")) S.set(time.strftime("%S")) if n%2 == 0: C.set(":") else: C.set("") win.after(1,update_clock) return() update_clock() presskey() time.sleep(1) win.mainloop()The font TTF is: https://www.1001fonts.com/digital-dismay-font.html
AND
https://www.1001fonts.com/ticking-timebomb-bb-font.html
If you think my code need change to better, please do so and show me, I can look at it and learn what's different. Thanks again!!!
Here what the screen looks like: