Changeset da6fd1a in sasview for fittingview
- Timestamp:
- Oct 12, 2011 12:58:58 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:
- fd51a7c
- Parents:
- 7643ba2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/fitting.py
r7643ba2 rda6fd1a 184 184 ftol_help) 185 185 wx.EVT_MENU(owner, self.id_tol, self.show_ftol_dialog) 186 186 self.menu1.AppendSeparator() 187 188 self.id_reset_flag = wx.NewId() 189 resetf_help = "BatchFit: If checked, the initial param values will be " 190 resetf_help += "propagated from the previous results. " 191 resetf_help += "Otherwise, the same initial param values will be used " 192 resetf_help += "for all fittings." 193 self.menu1.AppendCheckItem(self.id_reset_flag, "Chain Fitting [BatchFit Only]", 194 resetf_help) 195 wx.EVT_MENU(owner, self.id_reset_flag, self.on_reset_batch_flag) 196 self.menu1.FindItemById(self.id_reset_flag).Check(not self.batch_reset_flag) 187 197 188 198 #create menubar items … … 1327 1337 """ 1328 1338 pass 1329 1339 1340 def on_reset_batch_flag(self, event): 1341 """ 1342 Set batch_reset_flag 1343 """ 1344 event.Skip() 1345 menu_item = self.menu1.FindItemById(self.id_reset_flag) 1346 flag = menu_item.IsChecked() 1347 if not flag: 1348 menu_item.Check(False) 1349 self.batch_reset_flag = True 1350 else: 1351 menu_item.Check(True) 1352 self.batch_reset_flag = False 1353 1354 ## post a message to status bar 1355 msg = "Set Chain Fitting: %s" % str(not self.batch_reset_flag) 1356 wx.PostEvent(self.parent, 1357 StatusEvent(status=msg)) 1358 1330 1359 def _onset_engine_park(self,event): 1331 1360 """
Note: See TracChangeset
for help on using the changeset viewer.