Re: - Callback problem]

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: - Callback problem]

Brice V.
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
[hidden email]

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