Changeset a86e69b in sasview for fittingview/src/sans
- Timestamp:
- Sep 30, 2011 8:59:08 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:
- d682c92
- Parents:
- b7c6a4a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/fitpage.py
r62f851f ra86e69b 1192 1192 self.model.name = "M" + str(self.index_model) 1193 1193 1194 1194 1195 def _on_select_model(self, event=None): 1195 1196 """ 1196 1197 call back for model selection 1197 1198 """ 1198 1199 1199 self.Show(False) 1200 copy_flag = '' 1201 is_poly_enabled = None 1200 1202 if event != None: 1201 copy_flag = self.get_copy_params() 1202 is_poly_enabled = self.enable_disp.GetValue() 1203 else: 1204 copy_flag = '' 1205 is_poly_enabled = None 1203 if (event.GetEventObject() == self.formfactorbox\ 1204 and self.structurebox.GetLabel() != 'None')\ 1205 or event.GetEventObject() == self.structurebox\ 1206 or event.GetEventObject() == self.multifactorbox: 1207 copy_flag = self.get_copy_params() 1208 is_poly_enabled = self.enable_disp.GetValue() 1209 1206 1210 self._on_select_model_helper() 1207 1211 self.set_model_param_sizer(self.model) … … 1294 1298 1295 1299 # Keep the previous param values 1296 if copy_flag :1300 if copy_flag and self.structurebox.GetLabel() != 'None': 1297 1301 self.get_paste_params(copy_flag) 1298 1302 self._onDraw(event=None)
Note: See TracChangeset
for help on using the changeset viewer.