tkinter: Better Traceback
guettler at thomas-guettler.de
Thu Jul 17 13:40:00 CEST 2003
Fredrik Lundh wrote:
> Thomas Güttler wrote:
>> 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):
>> line 1299, in __call__
>> args = apply(self.subst, args)
>> line 1035, in _substitute
>> e.height = getint(h)
>> ValueError: invalid literal for int(): ??
> it's not a bug in your code, it's an incompatible change in Tk 8.4.2,
> which uses "??" to represent an "undefined integer".
> either upgrade your Tkinter (Python 2.3 contains a workaround), or down-
> grade your Tk to 8.4.1 or earlier (or link Tkinter against Tk 8.3.x).
Both solutions are need to change this which only root can do.
The application will be installed on several workstations
running Suse Linux8.2. Is there a workaround?
Would be good if I could use the default python (2.2.2)
and TK version (8.4.2).
More information about the Python-list