If all your needing is a clock, this is much easier.
#! /usr/bin/env python3 import tkinter as tk from time import strftime class Clock: def __init__(self, parent): self.label = tk.Label(parent) self.label['font'] = 'sans 16 normal' self.label['fg'] = 'red' self.label.pack() self.update() def display(self): self.label['text'] = strftime('%H:%M:%S') def update(self): self.display() self.label.after(1000, self.update) if __name__ == '__main__': root = tk.Tk() root.title('Clock') root.geometry('200x200+150+150') Clock(root) root.mainloop()
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags