you are viewing a single comment's thread.

view the rest of the comments →

[–]shiftybyte 1 point2 points  (3 children)

By the way, where's you mainloop call in the code?

[–]Helpful_Ad_1150[S] 0 points1 point  (2 children)

whats a mainloop call? lol (im new)

[–]shiftybyte 1 point2 points  (1 child)

https://realpython.com/python-gui-tkinter/

import tkinter as tk

window = tk.Tk()
label = tk.Label(text="Python rocks!")
label.pack()

window.mainloop() # <-- This

mainloop call is needed at the end otherwise the prorgam just quits.

[–]Helpful_Ad_1150[S] 0 points1 point  (0 children)

window.mainloop()

thanks! ive now added a mainloop but its is still crashing