[pygtk] - Callback problem]
Brice VISSIERE
brice.vissiere at free.fr
Wed Nov 21 05:09:17 WST 2007
Christian Robottom Reis wrote:
> Are any warnings printed? AFAICT you just need to prefix the function name
> with the imported module as in:
Here are the warnings printed when i close the window
Traceback (most recent call last):
File "/usr/lib/python2.0/site-packages/gtk.py", line 125, in __call__
ret = apply(self.func, a)
TypeError: no arguments expected
>
> my_imported_module.my_callback
>
There is a misunderstood, my callback function is not declared in the
imported module, but in the main module; the window class definition is
in the imported module. I try to do that : connect a callback to an
instance of my window.
--
Brice VISSIERE
brice.vissiere at free.fr
More information about the pygtk
mailing list