def __init__(self, name, children=[],width=-1,height=-1, parms=[]): Node.__init__(self, name, width, height) self.children = children self.relief = TK.GROOVE # Default if parms: self.width_type = parms[0] self.child_h_padding = parms[4] self.height_type = parms[1] self.child_v_padding = parms[5] self.x_align = parms[2] self.y_align = parms[3]
def __init__(self, name, children=[], width=-1, height=-1, parms=[]): Node.__init__(self, name, width, height) self.children = children self.relief = TK.GROOVE # Default if parms: self.width_type = parms[0] self.child_h_padding = parms[4] self.height_type = parms[1] self.child_v_padding = parms[5] self.x_align = parms[2] self.y_align = parms[3]
def __init__(self, name, columns=None, data=None, view_rows=None, cellheight=TABLE_CELLHEIGHT, h_gap=TABLE_H_GAP, v_gap=TABLE_V_GAP, color=TABLE_COLOR): Node.__init__(self, name) self.color = color self.columns = columns self.data = data self.view_rows = view_rows self.v_gap = v_gap self.h_gap = h_gap self.cellheight = cellheight self.v_scroll = False if columns and data: if not view_rows: self.view_rows = len(data) self.v_scroll = (self.view_rows < len(data)) self.table_dimensions()
def __init__(self, name='', width = -1, height = -1): Node.__init__(self, name, width, height)