Changeset d40038e in sasview for fittingview/src/sans/perspectives/fitting
- Timestamp:
- Apr 2, 2012 4:00:29 PM (13 years ago)
- Branches:
- master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 66798ce
- Parents:
- 07dfdb8
- Location:
- fittingview/src/sans/perspectives/fitting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/basepage.py
r1ac202f rd40038e 895 895 self.state.plugin_rbutton = self.plugin_rbutton.GetValue() 896 896 #model combobox 897 self.state.structurebox = self.structurebox.Get Selection()898 self.state.formfactorbox = self.formfactorbox.Get Selection()897 self.state.structurebox = self.structurebox.GetValue()#.GetSelection() 898 self.state.formfactorbox = self.formfactorbox.GetValue()#.GetSelection() 899 899 900 900 self.state.enable2D = copy.deepcopy(self.enable2D) … … 1060 1060 self._show_combox_helper() 1061 1061 #select the current model 1062 self.formfactorbox.Select(int(state.formfactorcombobox)) 1063 self.structurebox.SetSelection(state.structurecombobox ) 1062 try: 1063 # to support older version 1064 formfactor_pos = int(state.formfactorcombobox) 1065 except: 1066 formfactor_pos = 0 1067 for ind_form in range(self.formfactorbox.GetCount()): 1068 if self.formfactorbox.GetString(ind_form).count(state.formfactorcombobox)>0: 1069 formfactor_pos = int(ind_form) 1070 break 1071 1072 self.formfactorbox.Select(formfactor_pos) 1073 1074 try: 1075 # to support older version 1076 structfactor_pos = int(state.structurecombobox) 1077 except: 1078 structfactor_pos = 0 1079 for ind_struct in range(self.structurebox.GetCount()): 1080 if self.structurebox.GetString(ind_struct).count(state.structurecombobox)>0: 1081 structfactor_pos = int(ind_struct) 1082 break 1083 1084 self.structurebox.SetSelection(structfactor_pos) 1085 1064 1086 if state.multi_factor != None: 1065 1087 self.multifactorbox.SetSelection(state.multi_factor) … … 1206 1228 self._show_combox_helper() 1207 1229 #select the current model 1208 self.formfactorbox.Select(int(state.formfactorcombobox)) 1209 self.structurebox.SetSelection(state.structurecombobox ) 1230 try: 1231 # to support older version 1232 formfactor_pos = int(state.formfactorcombobox) 1233 except: 1234 formfactor_pos = 0 1235 for ind_form in range(self.formfactorbox.GetCount()): 1236 if self.formfactorbox.GetString(ind_form).count(state.formfactorcombobox)>0: 1237 formfactor_pos = int(ind_form) 1238 break 1239 1240 self.formfactorbox.Select(formfactor_pos) 1241 1242 try: 1243 # to support older version 1244 structfactor_pos = int(state.structurecombobox) 1245 except: 1246 structfactor_pos = 0 1247 for ind_struct in range(self.structurebox.GetCount()): 1248 if self.structurebox.GetString(ind_struct).count(state.structurecombobox)>0: 1249 structfactor_pos = int(ind_struct) 1250 break 1251 1252 self.structurebox.SetSelection(structfactor_pos) 1253 1210 1254 if state.multi_factor != None: 1211 1255 self.multifactorbox.SetSelection(state.multi_factor) … … 1398 1442 self.state.struct_rbutton = self.struct_rbutton.GetValue() 1399 1443 self.state.plugin_rbutton = self.plugin_rbutton.GetValue() 1400 self.state.structurebox= self.structurebox.Get CurrentSelection()1401 self.state.formfactorbox = self.formfactorbox.Get CurrentSelection()1444 self.state.structurebox= self.structurebox.GetValue()#.GetCurrentSelection() 1445 self.state.formfactorbox = self.formfactorbox.GetValue()#.GetCurrentSelection() 1402 1446 1403 1447 #self._undo.Enable(True) -
fittingview/src/sans/perspectives/fitting/fitpage.py
rae56c90 rd40038e 1251 1251 self.state.slit_smearer = self.slit_smearer.GetValue() 1252 1252 1253 self.state.structurecombobox = self.structurebox.Get CurrentSelection()1254 self.state.formfactorcombobox = self.formfactorbox.Get CurrentSelection()1253 self.state.structurecombobox = self.structurebox.GetValue()#.GetCurrentSelection() 1254 self.state.formfactorcombobox = self.formfactorbox.GetValue()#.GetCurrentSelection() 1255 1255 self.enable_fit_button() 1256 1256 if self.model != None: … … 1263 1263 self._set_bookmark_flag(True) 1264 1264 self._keep.Enable(True) 1265 #self._set_save_flag(True)1265 self._set_save_flag(True) 1266 1266 # Reset smearer, model and data 1267 1267 if not copy_flag: -
fittingview/src/sans/perspectives/fitting/pagestate.py
r0483fd48 rd40038e 45 45 ["plugin_rbutton", "plugin_rbutton","bool"], 46 46 ["struct_rbutton", "struct_rbutton", "bool"], 47 ["formfactorcombobox", "formfactorcombobox", " float"],48 ["structurecombobox", "structurecombobox", " float"],47 ["formfactorcombobox", "formfactorcombobox", "string"], 48 ["structurecombobox", "structurecombobox", "string"], 49 49 ["multi_factor","multi_factor","float"], 50 50 ["enable_smearer","enable_smearer","bool"],
Note: See TracChangeset
for help on using the changeset viewer.