Question: python, what would i put in class mainwindow to display clock? import tkinter as tk import time class Clock(): def __init__(self): self.label = tk.Label(text=, font=('Helvetica',

python, what would i put in class mainwindow to display clock? import tkinter as tk import time class Clock(): def __init__(self): self.label = tk.Label(text="", font=('Helvetica', 48), fg='red') self.label.pack() self.update_clock() def update_clock(self): now = time.strftime("%H:%M:%S") self.label.configure(text=now) self.root.after(1000, self.update_clock) class mainwindow(): def __init__(self): self.root = tk.Tk() self.root.mainloop() app = mainwindow()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!