Code on Jupyter failing

(Torazo Tokuda) #1

My code is failing on Jupyter but on python shell it is working.
This is my code:

tkinter as tk


root = tk.Tk()
root.title("button stuff")
root.geometry("650x650")
label = tk.Label(root, text = "You are right now in cave, it is very dark and cold. To escape this cave you must pick the correct choices. There is more than one answer to stay alive", font = ('Comic Sans MS', 5), fg = 'Black')
label.pack()

plz tell me what is failing

This is my screen shot

0 Likes

(Tzu-ping Chung) #2

I don’t see anything failing. What you’re missing is likely root.mainloop(), which kicks off the UI.

0 Likes

(Torazo Tokuda) #3

Thanks for the help

0 Likes