gui/controls/gridview.py
def set_parent(self, new_parent, init=False):
        "Associate the header to the control (it could be recreated)"
        self._created = False
        SubComponent.set_parent(self, new_parent, init)
        # if index not given, append the column at the last position:
        if self.index == -1 or self.index >= len(self._parent.columns):
            self.index = len(self._parent.columns) - 1
        # insert the column in the listview:
        self._parent.wx_obj.AppendCols(1)
        #self._parent.wx_obj.SetColLabelValue(self.index, self.text)
        #self.SetColLabel(self.index, self.align)
        #self._parent.wx_obj.SetColSize(self.index, self.width)
        self._created = True
def set_parent(self, new_parent, init=False):
        "Associate the header to the control (it could be recreated)"
        self._created = False
        SubComponent.set_parent(self, new_parent, init)
        # if index not given, append the column at the last position:
        if self.index == -1 or self.index >= len(self._parent.columns):
            self.index = len(self._parent.columns) - 1
        # insert the column in the listview:
        self._parent.wx_obj.AppendCols(1)
        #self._parent.wx_obj.SetColLabelValue(self.index, self.text)
        #self.SetColLabel(self.index, self.align)
        #self._parent.wx_obj.SetColSize(self.index, self.width)
        self._created = True
def set_parent ( self , new_parent , init = False ) : self . _created = False SubComponent . set_parent ( self , new_parent , init ) # if index not given, append the column at the last position:
 if self . index == - 1 or self . index >= len ( self . _parent . columns ) : self . index = len ( self . _parent . columns ) - 1 # insert the column in the listview:
 self . _parent . wx_obj . AppendCols ( 1 ) #self._parent.wx_obj.SetColLabelValue(self.index, self.text)
 #self.SetColLabel(self.index, self.align)
 #self._parent.wx_obj.SetColSize(self.index, self.width)
 self . _created = True
Associate the header to the control (it could be recreated)
Associate the header to the control ( it could be recreated )