PDA

View Full Version : tkinter trying to get a window up



wingnut2626
March 1st, 2013, 03:51 PM
hi guys here is the code i am working with


from Tkinter import *


root = Tk() root.title("Note Taker")


root.mainloop()


and im getting a syntax error from the 2nd line. It should just pop up a basic window, right?

nidzo732
March 1st, 2013, 04:23 PM
Why are you putting "root = Tk()" and "root.title(`Note taker`)" on the same line?
Put them on separate lines.