[issue20636] Better repr for tkinter widgets

2014-04-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue20636] Better repr for tkinter widgets

2014-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 66770f126c71 by Serhiy Storchaka in branch 'default': Issue #20636: Improved the repr of Tkinter widgets. http://hg.python.org/cpython/rev/66770f126c71 -- nosy: +python-dev ___ Python tracker

[issue20636] Better repr for tkinter widgets

2014-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: After looking more at testing entire (Idle) dialogs and windows for sanity, I like the idea even more. A person can check that everything that is present looks ok, but code is at least as good as using a checklist to verify that what is present is exactly what

[issue20636] Better repr for tkinter widgets

2014-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Are there any questions or objections? -- assignee: -> serhiy.storchaka ___ Python tracker ___ __

[issue20636] Better repr for tkinter widgets

2014-02-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > > > > Not knowing the internal of tkinter, this seems somewhat confusing. > Is that an "anonymous name/id"? If the name parameter is not specified, repr(id(self)) is used. Here is a button with id() == 3066782348, its parent has id() == 3070343372 and its

[issue20636] Better repr for tkinter widgets

2014-02-23 Thread Ezio Melotti
Ezio Melotti added the comment: > Not knowing the internal of tkinter, this seems somewhat confusing. Is that an "anonymous name/id"? > This already looks more useful. How is that determined? Why the "first" object is missing (i.e. .panel seems to be an attribute of a missing object)? R

[issue20636] Better repr for tkinter widgets

2014-02-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I like this. It would make naming widgets more useful. I checked one Idle dialog and nothing is named. I suspect this is typical. The proposed change would break a doctest that follows the fix in the doctest manual. --- >>> C() # the default repr() for insta

[issue20636] Better repr for tkinter widgets

2014-02-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a patch which adds more helpful repr for Tkinter widgets. Was Becomes: or (if you assigned names to widgets) This is very helpful for debugging. -- components: Tkinter files: tkinter_misc_repr.patch keywords: patch messag