diff options
Diffstat (limited to 'Demo/tkinter/guido/hello.py')
-rwxr-xr-x | Demo/tkinter/guido/hello.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Demo/tkinter/guido/hello.py b/Demo/tkinter/guido/hello.py index 237204f..358a7ec 100755 --- a/Demo/tkinter/guido/hello.py +++ b/Demo/tkinter/guido/hello.py @@ -4,14 +4,14 @@ import sys from Tkinter import * def main(): - root = Tk() - button = Button(root) - button['text'] = 'Hello, world' - button['command'] = quit_callback # See below - button.pack() - root.mainloop() + root = Tk() + button = Button(root) + button['text'] = 'Hello, world' + button['command'] = quit_callback # See below + button.pack() + root.mainloop() def quit_callback(): - sys.exit(0) + sys.exit(0) main() |