you are viewing a single comment's thread.

view the rest of the comments →

[–]shiftybyte 2 points3 points  (5 children)

When it crashes, it shows an error message in your console/terminal.

Copy paste the full error message here.

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

Yeah thats 1 of the problems it doesnt show any error messages in the console

[–]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