tkinter: Better Traceback

Thomas Güttler guettler at thomas-guettler.de
Wed Jul 16 13:55:59 CEST 2003


Hi!

Is there a way to get a better traceback in tkinter?
It would be nice to see the line number of the last line
of "my" code. 

Exception in Tkinter callback
Traceback (most recent call last):
  File "/var/tmp/python-2.2.2-build//usr/lib/python2.2/lib-tk/Tkinter.py",
line 1299, in __call__
    args = apply(self.subst, args)
  File "/var/tmp/python-2.2.2-build//usr/lib/python2.2/lib-tk/Tkinter.py",
line 1035, in _substitute
    e.height = getint(h)
ValueError: invalid literal for int(): ??

 thomas





More information about the Python-list mailing list