[pygtk] CellRendererText signal when editing starts?
Thomas Mills Hinkle
tmhinkle at gmail.com
Sun Mar 6 00:42:21 WST 2005
Is there a simple way to connect a handler to the beginning of editing?
In my case, I'd like to use it with the new CellRendererCombo (which
is wonderful to have at last!) to filter the ListModel the Combo is
using based on which item the user has started to edit.
It looks like I could do this by subclassing CellRendererCombo and
creating something like:
def start_editing (self, *args, **args):
self.run_my_handlers()
CellRendererCombo.start_editing(self,*args,**args)
But this would be awfully ugly -- I'd much rather just connect to a
signal if there is one. That said, I see signals for completion of
editing and cancelling of editing, but not for the beginning.
Tom
More information about the pygtk
mailing list