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
[EMAIL PROTECTED]

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to