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.
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
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
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
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
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