Hi,

I have a class derived from GtkDialog, and set up a callback on a button
using connect_object and passing the derived dialog as an argument.
The problem is that when the dialog is passed to to callback function, it
has been cast into a GtkWindow object and I cannot access the controld I
defined as member variables in my class:

Traceback (innermost last):
  File "/usr/lib/python1.5/site-packages/gtk.py", line 125, in __call__
    ret = apply(self.func, a)
  File "Narval/narval/Horn.py", line 358, in narval_home_changed
    path = selector.selectionEntry.get_text()
  File "/usr/lib/python1.5/site-packages/gtk.py", line 908, in __getattr__
    return GtkWindow.__getattr__(self, attr)
  File "/usr/lib/python1.5/site-packages/gtk.py", line 75, in __getattr__
    raise AttributeError, attr
AttributeError: selectionEntry

I suppose I'm not the first one to encounter the problem. Are there any
workarounds ?  


-- 
Alexandre Fayolle
http://www.logilab.com 
LOGILAB, Paris (France).


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to