Changeset 817991b in sasview for fittingview/src/sans/perspectives/fitting/fitpage.py
- Timestamp:
- Sep 28, 2011 2:13:25 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:
- 5f15492
- Parents:
- 951a2f5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/fitpage.py
r5e48acb r817991b 1187 1187 """ 1188 1188 1189 self.Show(False) 1189 self.Show(False) 1190 if event != None: 1191 copy_flag = self.get_copy_params() 1192 is_poly_enabled = self.enable_disp.GetValue() 1193 else: 1194 copy_flag = '' 1195 is_poly_enabled = None 1190 1196 self._on_select_model_helper() 1191 1197 self.set_model_param_sizer(self.model) … … 1213 1219 self._set_copy_flag(True) 1214 1220 self._set_paste_flag(True) 1215 if self.data != None: 1216 self._set_bookmark_flag(True) 1217 self._keep.Enable(True) 1221 if self.data is not None: 1222 is_data = check_data_validity(self.data) 1223 if is_data: 1224 self._set_bookmark_flag(True) 1225 self._keep.Enable(True) 1218 1226 #self._set_save_flag(True) 1219 1227 # Reset smearer, model and data … … 1267 1275 self.formfactorbox.SetSelection(pos) 1268 1276 self.formfactorbox.SetValue(current_val) 1277 # when select a model only from guictr/button 1278 if is_poly_enabled != None: 1279 self.enable_disp.SetValue(is_poly_enabled) 1280 self.disable_disp.SetValue(not is_poly_enabled) 1281 self._set_dipers_Param(event=None) 1282 self.state.enable_disp = self.enable_disp.GetValue() 1283 self.state.disable_disp = self.disable_disp.GetValue() 1284 1285 # Keep the previous param values 1286 if copy_flag: 1287 self.get_paste_params(copy_flag) 1269 1288 self._onDraw(event=None) 1270 1289 else:
Note: See TracChangeset
for help on using the changeset viewer.