Oct-08-2018, 09:25 AM
(This post was last modified: Oct-08-2018, 09:25 AM by Axel_Erfurt.)
see PyQt5 example
https://github.com/baoboa/pyqt5/blob/mas...alclock.py
or
https://github.com/baoboa/pyqt5/blob/mas...alclock.py
or
from Tkinter import * import time root = Tk() time1 = '' clock = Label(root, font=('times', 20, 'bold'), bg='lightgray') clock.pack(fill=BOTH, expand=1) def tick(): global time1 time2 = time.strftime('%H:%M:%S') if time2 != time1: time1 = time2 clock.config(text=time2) clock.after(200, tick) tick() root.mainloop( )