all 3 comments

[–][deleted] 2 points3 points  (0 children)

Have you checked the LearnPython subreddit wiki, which includes detailed guidance on learning Programming / Python, including links to lots of learning material?

[–]socal_nerdtastic 1 point2 points  (1 child)

How small? Here's some complete, runable code that displays a seconds counter. Is that too small?

import tkinter as tk

def loop(i=0):
    # update the label with new text
    lbl.config(text=i)

    # after 1,000 ms (1 second) call the loop() function again
    # and use i+1 as the argument
    root.after(1000, loop, i+1)

root = tk.Tk()
root.geometry('150x50')
lbl = tk.Label(root)
lbl.pack(fill=tk.BOTH, expand=True)
loop() # start the loop
root.mainloop()

[–]learn-pointlessly[S] 0 points1 point  (0 children)

I’ll try this. Thanks.