Lyndon D'Arcy <lyndon.da...@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 <rep...@bugs.python.org>
wrote:

>
> Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org>
> <https://bugs.python.org/issue45029>
> _______________________________________
>

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45029>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to