Changeset 817991b in sasview for fittingview/src/sans/perspectives
- 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
- Location:
- fittingview/src/sans/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/basepage.py
r951a2f5 r817991b 153 153 ## dictionary of saved state 154 154 self.saved_states = {} 155 # clipbord str state156 self.clipboard_str_state = None157 155 ## Create context menu for page 158 156 self.popUpMenu = wx.Menu() … … 620 618 name = menu.GetLabel(event.GetId()) 621 619 self._on_select_model_helper() 622 623 620 if name in self.saved_states.keys(): 624 621 previous_state = self.saved_states[name] … … 2922 2919 """ 2923 2920 text = self.get_clipboard() 2924 2925 return self.get_paste_from_clipboard(text) 2926 2927 def get_paste_from_clipboard(self, text=''): 2921 flag = self.get_paste_params(text) 2922 self._copy_info(flag) 2923 return flag 2924 2925 def get_paste_params(self, text=''): 2928 2926 """ 2929 2927 Get the string copies of the param names and values in the tap … … 2960 2958 self._get_paste_helper(self.str_parameters, 2961 2959 self.orientation_params, context) 2962 self._copy_info(True)2963 return True2960 return True 2961 return None 2964 2962 2965 2963 def _get_paste_helper(self, param, orient_param, content): -
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.