def on_str_tables_load(self, cbotype, text): """ Method to set default party and spatial unit table in STR table definition page :return: """ p_index = cbotype.findText(text,Qt.MatchExactly) if p_index != -1: cbotype.setCurrentIndex(p_index) profile = self.tableHandler.active_profile() if cbotype == self.cboParty: self.lblPartyDesc.setText(table_description(text)) else: self.lblSpDesc.setText(table_description(text)) else: cbotype.setCurrentIndex(0)
def spatial_str_selection_changed(self): """ Method to sync the table details when spatial table is selected :return: """ cur_text = self.cboSPUnit.currentText() self.lblSpDesc.setText(table_description(cur_text)) table_cols = self.tableHandler.selected_table_columns(cur_text) self.lstSPCol.setModel(self.table_cols_to_model(table_cols,True)) self.update_listveiw_cols(self.lstSPCol,cur_text) self.groupBox_4.setCollapsed(False)
def party_str_selection_changed(self): """ Method to sync the table details when party table is selected :return: """ cur_text = self.cboParty.currentText() self.lblPartyDesc.setText(table_description(cur_text)) table_cols = self.tableHandler.selected_table_columns(cur_text) self.lstPartyCol.setModel(self.table_cols_to_model(table_cols,True)) self.update_listveiw_cols(self.lstPartyCol, cur_text) self.groupBox_3.setCollapsed(False)