Changeset cdc2ee2 in sasview
- Timestamp:
- Mar 27, 2012 2:00:05 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:
- 1ac202f
- Parents:
- 796c4d4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/src/sans/perspectives/calculator/model_editor.py
r796c4d4 rcdc2ee2 213 213 msg = "Name exists already." 214 214 wx.MessageBox(msg, info) 215 self._notes = msg 215 216 return self.good_name 216 217 self.fname = os.path.join(self.plugin_dir, t_fname) 217 self._notes = "SumModel function name set " 218 self._notes += "to %s. \n" % str(title) 218 self._notes = "SumModel function (%s) has been set. \n" % str(title) 219 219 self.good_name = True 220 220 self.on_apply(self.fname) … … 233 233 self.compile_file(fname) 234 234 self.parent.update_custom_combo() 235 msg = self._notes 236 info = 'Infor' 235 237 except: 238 msg= "Easy Custom Sum: Error occurred..." 239 info = 'Error' 240 if self.parent.parent != None: 241 from sans.guiframe.events import StatusEvent 242 wx.PostEvent(self.parent.parent, StatusEvent(status = msg, 243 info=info)) 244 else: 236 245 raise 237 if self.parent.parent != None:238 from sans.guiframe.events import StatusEvent239 msg= "Easy Custom Sum: Error occurred..."240 wx.PostEvent(self.parent.parent, StatusEvent(status = msg ))241 else:242 raise243 246 244 247 def _set_model_list(self):
Note: See TracChangeset
for help on using the changeset viewer.