def __setitem__(self, key, value):
     prev = self[key]
     MkArray.__setitem__(self, key, value)
     self.worksheet.emit('data-changed')
     self.emit('data-changed')
     return [key, value, prev]
 def undo_set_expr(self, state):
     self.do_set_expr(None, state['old'], setstate=False)
     if 'olddata' in state:
         MkArray.__setitem__(self, slice(None), state['olddata'])
 def reload(self, ind):
     MkArray.__init__(self, self.worksheet.data.columns, self.worksheet.data.columns.data, ind)
     self.data = self.worksheet.data.columns[ind]
 def __init__(self, worksheet, ind):
     self.data = worksheet.data.columns[ind]
     self.worksheet = worksheet
     MkArray.__init__(self, worksheet.data.columns, worksheet.data.columns.data, ind)
     self.dependencies = set()
 def undo_set_expr(self, state):
     self.do_set_expr(None, state["old"], setstate=False)
     if "olddata" in state:
         MkArray.__setitem__(self, slice(None), state["olddata"])
 def __init__(self, worksheet, ind):
     self.data = worksheet.data.columns[ind]
     self.worksheet = worksheet
     MkArray.__init__(self, worksheet.data.columns, worksheet.data.columns.data, ind)
     self.dependencies = set()
     self.worksheet.connect("set-parent", self.on_ws_set_parent)