Lorenzo Gil Sanchez  writes:

>
> Try changing the __init__ method to:
>
>     def __init__(self, model, *a, **kw):
>         self.__gobject_init__()
>         self.set_model(model)
>
Gee, thanks a lot, that helped.

> Anyway, I run into other problem: when I type CTRL+Up the signal is
> emitted but this is what i get:
>
> (widgettest.py:2227): Gtk-WARNING **: gtk_binding_entry_activate():
> binding "__main__+HnbTreeView::<Control>Up": signal
> "move-to-sibling" in the `__main__+HnbTreeView' class ancestry
> cannot be used for action emissions

Well, adding gobject.SIGNAL_ACTION to the signal's flags made that go
away.  (And in the C code for treeview similar signals, like
'move-cursor' are created with those flags so I guess that's the way
to do it.)

(So it now looks like this:
    __gsignals__={
         'move-to-sibling' : (gobject.SIGNAL_RUN_LAST | gobject.SIGNAL_ACTION,
                              gobject.TYPE_NONE, (gobject.TYPE_INT,))
    }
)

-- 
Abel Daniel
_______________________________________________
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