[issue45029] tkinter doc, hello world example - quit button clobbers method
Lyndon D'Arcy
report at bugs.python.org
Fri Aug 27 06:09:19 EDT 2021
Lyndon D'Arcy <lyndon.darcy at gmail.com> 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 to a button object
instead of the quit method.
On Fri, 27 Aug 2021 at 7:38 pm, Serhiy Storchaka <report at bugs.python.org>
wrote:
>
> Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
>
> I get different result:
>
> >>> app.quit
> <tkinter.Button object .!application.!button2>
> >>> help(app.quit)
> Help on Button in module tkinter object:
>
> class Button(Widget)
> | Button(master=None, cnf={}, **kw)
> |
> | Button widget.
> |
> ...
>
> ----------
> nosy: +serhiy.storchaka
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <https://bugs.python.org/issue45029>
> _______________________________________
>
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45029>
_______________________________________
More information about the Python-bugs-list
mailing list