tkinter - Quit function for python 2 -


i'm following tutorial in python 3 using python 2. in tutorial following code used:

button2 = ttk.button(self, text="disagree", command = quit) 

when run code error:

nameerror: global name 'quit' not defined 

is there equivalent function use in python 2? tried sys.exit() froze tkinter window rather closing out.

tkinter wants root.quit(). (root root tkinter object)


Comments

Popular posts from this blog

c++ - rosrun via ssh doesnt start a node properly -

android - questions about switching from C2DM to GCM -

How to resolve Delphi error: Incompatible types: 'PWideChar' and 'Pointer' -