コード例 #1
0
ファイル: composer_data_source.py プロジェクト: gltn/stdm
 def set_referenced_table(self, referenced_table: str):
     """
     Selects the specified table in the referenced table combobox.
     :param referenced_table: Name of the referenced table.
     :type: str
     """
     if self.category() == 'View':
         GuiUtils.set_combo_index_by_data(self.cboReferencedTable,
                                          referenced_table)
コード例 #2
0
ファイル: valuehandlers.py プロジェクト: gltn/stdm
 def setValue(self, value):
     GuiUtils.set_combo_index_by_data(self.control, value)
コード例 #3
0
ファイル: composer_data_source.py プロジェクト: gltn/stdm
 def setSelectedSource(self, dataSourceName):
     """
     Set the data source name if it exists in the list.
     """
     GuiUtils.set_combo_index_by_data(self.cboDataSource, dataSourceName)
コード例 #4
0
 def _set_graph_properties(self, config):
     # Set the general graph properties from the config object
     self.txt_plot_title.setText(config.title())
     self.gb_legend.setChecked(config.insert_legend())
     GuiUtils.set_combo_index_by_data(self.cbo_legend_pos,
                                      config.legend_position())