[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: For whatever reason, the 3.9 backport, PR-27911, was closed. In any case, we will not edit the code we have replaced. Lyndon, when responding by email, please delete the old text as it is redundant and noisy when your email is added to the web page.

[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-28 Thread miss-islington
Change by miss-islington : -- keywords: +patch nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +26458 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27911 ___ Python tracker

[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-27 Thread E. Paine
E. Paine added the comment: Thanks for reporting this issue. This was (very) recently fixed in issue42560 / PR27842. These changes include a new hello world example and can be seen in the 3.10 / 3.11 docs (https://docs.python.org/3.10/library/tkinter.html#a-hello-world-program). This

[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-27 Thread Lyndon D'Arcy
Lyndon D'Arcy added the comment: Apologies, my original post was unclear. The help(app.quit) which I posted is what we should get when the method isn't clobbered. What Serhiy has posted is what you get after running the example as-is. It shows that after running the example self.quit refers

[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I get different result: >>> app.quit >>> help(app.quit) Help on Button in module tkinter object: class Button(Widget) | Button(master=None, cnf={}, **kw) | | Button widget. | ... -- nosy: +serhiy.storchaka

[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-27 Thread Lyndon D'Arcy
New submission from Lyndon D'Arcy : Below is the example as it is. Currently self.quit clobbers a built-in method of the same name. I would suggest renaming self.quit to self.quit_button or similar. --- import tkinter as tk class