Changeset cefb3fb in sasview for invariantview/perspectives/invariant/invariant_panel.py
- Timestamp:
- Apr 21, 2011 8:33:56 PM (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:
- 04295ea
- Parents:
- d38d0042
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/perspectives/invariant/invariant_panel.py
rd4d78c9 rcefb3fb 81 81 self.bookmark_num = 0 82 82 83 #self._set_bookmark_menu()83 self._set_bookmark_menu() 84 84 #Init state 85 85 self.set_state() … … 136 136 self._set_preview_flag(False) 137 137 self._reset_state_list() 138 138 self._set_bookmark_flag(True) 139 139 return True 140 140 … … 187 187 # get bookmarks 188 188 self.bookmark_num = len(self.state.bookmark_list) 189 190 189 total_bookmark_num = self.bookmark_num + 1 191 190 for ind in range(1,total_bookmark_num): … … 198 197 wx.EVT_MENU(self, id, self._back_to_bookmark) 199 198 199 wx.PostEvent(self.parent, AppendBookmarkEvent(title=name, 200 hint='', 201 handler=self._back_to_bookmark)) 202 200 203 self.get_state_by_num(state_num=str(num)) 201 204 … … 204 207 # when loaded from a inv file) 205 208 self.state.data = self._data 206 209 self._set_preview_flag(False) 207 210 self.new_state = False 208 211 self.is_state_data = False … … 604 607 self.state.timestamp= self._get_time_stamp() 605 608 msg = self.state.__str__() 606 #self.state.set_report_string()609 self.state.set_report_string() 607 610 self.is_power_out = False 608 611 wx.PostEvent(self.parent, StatusEvent(status = msg )) … … 1051 1054 1052 1055 # append it to menu 1053 #id = wx.NewId()1054 #self.popUpMenu.Append(id,name,str(msg))1055 #wx.EVT_MENU(self, id, self._back_to_bookmark)1056 id = wx.NewId() 1057 self.popUpMenu.Append(id,name,str(msg)) 1058 wx.EVT_MENU(self, id, self._back_to_bookmark) 1056 1059 state = self.state.clone_state() 1057 1060 comp_state = copy.deepcopy(self.state.state_list[str(compute_num)])
Note: See TracChangeset
for help on using the changeset viewer.