Changeset 1228007 in sasview for src/sas/qtgui
- Timestamp:
- Feb 17, 2017 3:25:42 AM (8 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 8595edd
- Parents:
- 6a9559d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingPerspective.py
rd84bc69 r1228007 25 25 self.comboBox.addItems(cat_list) 26 26 self.tableView.setModel(self._model_model) 27 self.comboBox.currentIndexChanged.connect(self.selectCategoryModels) 27 28 28 model_list = self.master_category_dict['Cylinder'] 29 category = self.comboBox.currentText() 30 31 model_list = self.master_category_dict[str(category)] 29 32 for (model, enabled) in model_list: 30 33 self.comboBox_2.addItem(model) 31 self.setModelModel('barbell') 34 35 self.comboBox_2.currentIndexChanged.connect(self.selectModel) 32 36 33 37 self.pushButton.setEnabled(False) … … 49 53 i = self.tableView_2.model().index(row,6) 50 54 self.tableView_2.setIndexWidget(i,c) 55 56 def selectCategoryModels(self, index): 57 self.comboBox_2.clear() 58 category = self.comboBox.currentText() 59 model_list = self.master_category_dict[str(category)] 60 for (model, enabled) in model_list: 61 self.comboBox_2.addItem(model) 62 63 def selectModel(self, index): 64 65 model = self.comboBox_2.currentText() 66 self.setModelModel(model) 51 67 52 68 def _readCategoryInfo(self): … … 87 103 def setModelModel(self, model_name): 88 104 # Crete/overwrite model items 89 105 self._model_model.clear() 90 106 model_name = str(model_name) 91 107 kernel_module = generate.load_kernel_module(model_name)
Note: See TracChangeset
for help on using the changeset viewer.