from tkinter import *
from tkinter.ttk import *
from time import strftime
clock = Tk()
clock.title("WhatAClock")
clock.geometry("300x400")
def real_time():
time_str = strftime('%H:%M:%S')
l1.config(text = time_str)
l1.after(1000, real_time)
l1 = Label(clock).place(x=125, y=10)
real_time()
clock.mainloop()
sorry for the "import section", still very confused about it and wanted to make sure that wasn t the problem
As i run this on spyder attribute error 'NoneType' object has no attribute 'config' I've been messing around with it for a while and i'm running out of ideas!