------- 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, got 0
--- output ------------------------
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 timeout_add() must
put a traceback in the newly created callback and print that
in case of an error.
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()).
--
==============================================
Sowatec AG, CH-8330 Pf�ffikon (ZH)
Witzbergstr. 7, http://www.sowatec.com
Tel: +41-(0)1-952 55 55
Fax: +41-(0)1-952 55 66
----------------------------------------------
Aaron "Optimizer" Digulla, [EMAIL PROTECTED]
==============================================
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk