Changeset 9bc499b6 in sasview for sansview/perspectives/fitting
- Timestamp:
- May 24, 2010 3:10:15 PM (15 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:
- 9c38ed4
- Parents:
- 6c2d1a1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
r4470b10 r9bc499b6 130 130 self.popUpMenu.AppendItem(self._keep) 131 131 self._keep.Enable(True) 132 wx.EVT_MENU(self, id, self.on Save)132 wx.EVT_MENU(self, id, self.on_bookmark) 133 133 self.popUpMenu.AppendSeparator() 134 134 … … 548 548 ## reset state of checkbox,textcrtl and regular parameters value 549 549 self.reset_page(previous_state) 550 551 def onSave(self, event): 550 551 def on_save_state(self, event): 552 """ 553 Save the current state into file 554 """ 555 def on_bookmark(self, event): 552 556 """ 553 557 save history of the data and model … … 732 736 self.state.disp_list= copy.deepcopy(self.disp_list) 733 737 self.state.model = self.model.clone() 734 #if hasattr(self,self.engine_type)> 0: 735 #self.state.engine_type = self.engine_type.clone() 738 if hasattr(self, "engine_type"): 739 self.state.engine_type = copy.deepcopy(self.engine_type) 740 736 741 self.state.enable2D = copy.deepcopy(self.enable2D) 737 742 self.state.values= copy.deepcopy(self.values) … … 825 830 if self.data !=None: 826 831 from DataLoader.qsmearing import smear_selection 827 self.smearer= smear_selection( self.data)832 self.smearer= smear_selection(self.data) 828 833 self.enable2D= state.enable2D 829 834 self.engine_type = state.engine_type … … 2137 2142 self.btSave_title = wx.StaticText(self, -1, 'Save the current Model') 2138 2143 self.btSave = wx.Button(self,wx.NewId(),'Save') 2139 self.btSave.Bind(wx.EVT_BUTTON, self.on Save,id= self.btSave.GetId())2144 self.btSave.Bind(wx.EVT_BUTTON, self.on_save_state,id= self.btSave.GetId()) 2140 2145 self.btSave.SetToolTipString("Save the current Model") 2141 2146
Note: See TracChangeset
for help on using the changeset viewer.