def __init__(self, data_type, contribution, grid):
        """
        take: data_type (string), MagIC contribution,
        & grid (grid object)
        """
        self.contribution = contribution

        self.data_type = data_type
        if self.data_type in self.contribution.tables:
            self.magic_dataframe = self.contribution.tables[self.data_type]
        else:
            self.magic_dataframe = None
        if self.data_type == 'ages':
            parent_ind, parent_table, self.parent_type = None, None, None
        elif self.data_type == 'orient':
            pass
        else:
            parent_ind = self.contribution.ancestry.index(self.data_type)
            parent_table, self.parent_type = self.contribution.get_table_name(parent_ind+1)

        self.grid = grid
        self.huge_grid = True if isinstance(self.grid, magic_grid3.HugeMagicGrid) else False
        self.window = grid.Parent  # parent window in which grid resides
        #self.headers = headers
        self.selected_col = None
        self.selection = [] # [(row, col), (row, col)], sequentially down a column
        self.dispersed_selection = [] # [(row, col), (row, col)], not sequential
        self.col_color = None
        self.colon_delimited_lst = ['geologic_types', 'geologic_classes',
                                    'lithologies', 'specimens', 'samples',
                                    'sites', 'locations', 'method_codes']
        self.InitUI()
def __init__ ( self , data_type , contribution , grid ) : self . contribution = contribution self . data_type = data_type if self . data_type in self . contribution . tables : self . magic_dataframe = self . contribution . tables [ self . data_type ] else : self . magic_dataframe = None if self . data_type == 'ages' : parent_ind , parent_table , self . parent_type = None , None , None elif self . data_type == 'orient' : pass else : parent_ind = self . contribution . ancestry . index ( self . data_type ) parent_table , self . parent_type = self . contribution . get_table_name ( parent_ind + 1 ) self . grid = grid self . huge_grid = True if isinstance ( self . grid , magic_grid3 . HugeMagicGrid ) else False self . window = grid . Parent self . selected_col = None self . selection = [ ] self . dispersed_selection = [ ] self . col_color = None self . colon_delimited_lst = [ 'geologic_types' , 'geologic_classes' , 'lithologies' , 'specimens' , 'samples' , 'sites' , 'locations' , 'method_codes' ] self . InitUI ( )
take: data_type (string), MagIC contribution,
        & grid (grid object)