Changeset 04295ea in sasview for invariantview/perspectives/invariant/invariant_panel.py
- Timestamp:
- Apr 22, 2011 11:29:20 AM (14 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:
- 270e240
- Parents:
- cefb3fb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/perspectives/invariant/invariant_panel.py
rcefb3fb r04295ea 169 169 set state when loading it from a .inv/.svs file 170 170 """ 171 171 172 if state == None and data == None: 172 173 self.state = IState() 173 174 elif state == None or data == None: return 174 175 else: 176 new_state = copy.deepcopy(state) 175 177 self.new_state = True 176 178 if not self.set_data(data): 177 179 return 178 self.state = state 180 181 self.state = new_state 179 182 self.state.file = data.name 180 183 … … 188 191 self.bookmark_num = len(self.state.bookmark_list) 189 192 total_bookmark_num = self.bookmark_num + 1 193 190 194 for ind in range(1,total_bookmark_num): 191 195 #bookmark_num = ind … … 196 200 self.popUpMenu.Append(id,name,str('')) 197 201 wx.EVT_MENU(self, id, self._back_to_bookmark) 198 199 202 wx.PostEvent(self.parent, AppendBookmarkEvent(title=name, 200 203 hint='',
Note: See TracChangeset
for help on using the changeset viewer.