def add_method_drop_down(self, col_number, col_label):
        """
        Add drop-down-menu options for magic_method_codes columns
        """
        if self.data_type == 'age':
            method_list = vocab.age_methods
        elif '++' in col_label:
            method_list = vocab.pmag_methods
        elif self.data_type == 'result':
            method_list = vocab.pmag_methods
        else:
            method_list = vocab.er_methods
        self.choices[col_number] = (method_list, True)
def add_method_drop_down ( self , col_number , col_label ) : if self . data_type == 'age' : method_list = vocab . age_methods elif '++' in col_label : method_list = vocab . pmag_methods elif self . data_type == 'result' : method_list = vocab . pmag_methods else : method_list = vocab . er_methods self . choices [ col_number ] = ( method_list , True )
Add drop-down-menu options for magic_method_codes columns