[pygtk] CellRendererText signal when editing starts?

Thomas Mills Hinkle tmhinkle at gmail.com
Sun Mar 6 04:41:40 WST 2005


> In GTK+ 2.6 the GtkCellRenderer has the "editing-started" signal.

Aha -- very useful.

In case anyone else is following this thread, the callback args aren't
documented yet AFAICT.  The following callback setup is working for me
though:

def editing_started_cb (CellRenderer, Widget, PathString):      
        indices = path_string.split(':')
        path = tuple( map(int, indices))
        store = self.ingTree.get_model()
        iter = store.get_iter(path)
        itm=store.get_value(iter,self.ingColsByAttr['item'])
        mod = renderer.get_property('model')
        # now I have my model and my item and can do any refiltering
as necessary. I guess I could also get the model with
Widget.get_model().
 
> John

Tom


More information about the pygtk mailing list