Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-35086: Fix tkinter docs A Simple Hello World Program #10160

Merged
merged 1 commit into from Oct 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion Doc/library/tkinter.rst
Expand Up @@ -205,6 +205,7 @@ A Simple Hello World Program
class Application(tk.Frame):
def __init__(self, master=None):
super().__init__(master)
self.master = master
self.pack()
self.create_widgets()

Expand All @@ -215,7 +216,7 @@ A Simple Hello World Program
self.hi_there.pack(side="top")

self.quit = tk.Button(self, text="QUIT", fg="red",
command=root.destroy)
command=self.master.destroy)
self.quit.pack(side="bottom")

def say_hi(self):
Expand Down