[chimera-dev] binding handlers to SortableTable checkboxes
Jan Kosinski
kosinski at embl.de
Fri Oct 16 14:55:40 PDT 2015
Hi again,
How to attach handlers to checkboxes in the CGLtk SortableTable so the handler is invoked automatically when the checkbox is (un)checked?
I get it working by subclassing and overriding _widgetCB as below but maybe you have sth more convenient?
class ComponentSortableTable(SortableTable):
def __init__(self,parent,*args,**kwargs):
SortableTable.__init__(self,parent,*args,**kwargs)
def _widgetCB(self, datum, column, newVal=None):
SortableTable._widgetCB(self, datum, column, newVal=newVal)
<my code
if column.title == ‘show’:
…
>
Thanks,
Jan
More information about the Chimera-dev
mailing list