[issue27294] Better repr for Tkinter event objects
Serhiy Storchaka
report at bugs.python.org
Sat Jun 11 12:50:41 EDT 2016
Serhiy Storchaka added the comment:
Oops! Sorry, here is a patch.
Event.type is decoded. The address of the Event object is omitted as don't having much sense (this is short-living object). The name of widget is omitted since it is too long and usually know (in any case you can easy print both widget and event). Only non-default set attributes are output (thus the output depends on the type of the event).
----------
keywords: +patch
Added file: http://bugs.python.org/file43342/tkinter_event_repr.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27294>
_______________________________________
More information about the Python-bugs-list
mailing list