[Python-bugs-list] [ python-Bugs-639266 ] Tkinter sliently discards all Tcl errors
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 15 Nov 2002 23:35:48 -0800
Bugs item #639266, was opened at 2002-11-16 07:35
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=639266&group_id=5470
Category: Tkinter
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Internet Discovery (idiscovery)
Assigned to: Nobody/Anonymous (nobody)
Summary: Tkinter sliently discards all Tcl errors
Initial Comment:
Tkinter silently discards all Tcl errors. Athough this may make Tkinter programs
appear robust, it violates the fundamental principle that erros should be raised
and dealt with.
In Tkinter.py is the line
self.tk.createcommand('tkerror', _tkerror)
where _tkerror is defined as
def _tkerror(err):
"""Internal function."""
pass
This disables all uses of the tcl procedure bgerror from signalling
background errors to the user, including I assume any errors
generated in after_idle.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=639266&group_id=5470