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/", 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.


[hidden email]

pygtk mailing list   [hidden email]
Read the PyGTK FAQ: