예제 #1
0
 def setSelectedSource(self,dataSourceName):
     """
     Set the data source name if it exists in the list.
     """
     setComboCurrentIndexWithItemData(
         self.cboDataSource,
         dataSourceName
     )
예제 #2
0
 def set_referenced_table(self, referenced_table):
     """
     Selects the specified table in the referenced table combobox.
     :param referenced_table: Name of the referenced table.
     :type: str
     """
     if self.category() == 'View':
         setComboCurrentIndexWithItemData(self.cboReferencedTable,
                                          referenced_table)
예제 #3
0
 def setValue(self, value):
     setComboCurrentIndexWithItemData(self.control, value)
예제 #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())
     setComboCurrentIndexWithItemData(self.cbo_legend_pos,
                                      config.legend_position())
예제 #5
0
파일: valuehandlers.py 프로젝트: gltn/stdm
 def setValue(self,value):
     setComboCurrentIndexWithItemData(self.control,value)