Re: [pygtk] TypeError exception without traceback

2000-11-07 Thread Aaron Optimizer Digulla
Ok, thanks for the input (especially for the trace function ! That's something I was always missing :-) Here is my current solution: I defined a wrapper function which is called instead of the real function and that wrapper prints a meaningful error: def wrapper (*args, **kw): '''Small help

Re: [pygtk] TypeError exception without traceback

2000-11-07 Thread Aaron Optimizer Digulla
Quoting James Henstridge <[EMAIL PROTECTED]>: > > The problem is that timeout_add() doesn't give Python any hints > > what it should print as traceback. I submitted this as a bug in > > Python but Guide said this is a bug in PyGTK and I should post > > this here. The solution is probably that tim

Re: [pygtk] TypeError exception without traceback

2000-11-03 Thread Alexandre Fayolle
On Fri, 3 Nov 2000, Aaron Optimizer Digulla wrote: > James, can you have a look, please ? I have one of these in the > program I'm currently working on and it's impossible to find :-( > (no, it's not in timeout_add()). I encountered a similar problem sometimes ago, and was able to trace it back

Re: [pygtk] TypeError exception without traceback

2000-11-03 Thread James Henstridge
On Fri, 3 Nov 2000, Aaron Optimizer Digulla wrote: > --- test.py - > from gtk import * > > def test (x, y): > print x, y > mainquit () > > timeout_add (1.0, test) > > mainloop () > test.py -- > > Run this and you will get this message: > > --

[pygtk] TypeError exception without traceback

2000-11-03 Thread Aaron Optimizer Digulla
--- test.py - from gtk import * def test (x, y): print x, y mainquit () timeout_add (1.0, test) mainloop () test.py -- Run this and you will get this message: --- output TypeError: not enough parameters; expected 2, g