Sep-18-2020, 04:22 PM
(This post was last modified: Sep-18-2020, 04:22 PM by ATARI_LIVE.)
(Sep-18-2020, 03:25 PM)buran Wrote: why do you keep adding redundunt return
?
Man, I removed both return
(Sep-18-2020, 03:25 PM)buran Wrote: why do you need presskey() function?. just keep line 23, not in function.Alright, I removed the function and it's worked.
(Sep-18-2020, 03:25 PM)buran Wrote: I would definitely use more meaningful names. I would have combined some of them, but I guess it's how you like it (for display reasons)OK, what I should change to in your prefer if you have?
UPDATED:
from tkinter import * import time win = Tk() win.attributes('-fullscreen', True) win.configure(bg='black') T = StringVar() S = StringVar() G = StringVar() C = StringVar() fgc = "white" bgc = "black" 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 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) win.bind('<Escape>', quit) update_clock() win.mainloop()
Do there have other way to turn off the mouse pointer?