Lyndon D'Arcy <[email protected]> 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 <[email protected]> wrote: > > Serhiy Storchaka <[email protected]> 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 <[email protected]> > <https://bugs.python.org/issue45029> > _______________________________________ > ---------- _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue45029> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
