I'm not sure what the issue is there but there is perhaps a workaround. Instead of having a column full of buttons, have one button and then use the selected row.
from traits.api import HasTraits,Str,Int,Button,Instance, List
from traitsui.api import TableEditor,ObjectColumn,View, Item
class Person(HasTraits):
name=Str
age=Int
#Plot_size=Button(label='Plot size')
class Display(HasTraits):
Plot_size=Button(label='Plot size')
selected_person = Instance(Person)
people=List(Instance(Person))
table_editor=TableEditor(columns=[ObjectColumn(name='name'),
ObjectColumn(name='age')],
selected='selected_person',
#ObjectColumn(name='Plot_size', editable=False)],
deletable = True,
sortable = False,
sort_model = False,
show_lines = True,
orientation = 'vertical',
show_column_labels = True)
traits_view=View(Item('people',editor=table_editor),
Item('Plot_size'),
resizable=True)
def _Plot_size_fired(self):
print self.selected_person.name
demo=Display(people = [Person(name='Joe',age=21),
Person(name='John',age=27),
Person(name='Jenny',age=23)])
if __name__ == '__main__':
demo.configure_traits()
Otherwise, maybe the checkbox_column example is a good place to start.