Ignore:
Timestamp:
Apr 21, 2011 8:33:56 PM (14 years ago)
Author:
Jae Cho <jhjcho@…>
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
Message:

fixed history from inv file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • invariantview/perspectives/invariant/invariant_panel.py

    rd4d78c9 rcefb3fb  
    8181        self.bookmark_num = 0 
    8282         
    83         #self._set_bookmark_menu() 
     83        self._set_bookmark_menu() 
    8484        #Init state 
    8585        self.set_state() 
     
    136136            self._set_preview_flag(False) 
    137137            self._reset_state_list() 
    138              
     138            self._set_bookmark_flag(True) 
    139139        return True   
    140140     
     
    187187            # get bookmarks 
    188188            self.bookmark_num = len(self.state.bookmark_list) 
    189  
    190189            total_bookmark_num = self.bookmark_num + 1 
    191190            for ind in range(1,total_bookmark_num): 
     
    198197                wx.EVT_MENU(self, id, self._back_to_bookmark)  
    199198 
     199                wx.PostEvent(self.parent, AppendBookmarkEvent(title=name,  
     200                                          hint='', 
     201                                          handler=self._back_to_bookmark)) 
     202 
    200203            self.get_state_by_num(state_num=str(num)) 
    201204             
     
    204207            # when loaded from a inv file) 
    205208            self.state.data = self._data 
    206  
     209            self._set_preview_flag(False) 
    207210            self.new_state = False  
    208211            self.is_state_data = False 
     
    604607            self.state.timestamp= self._get_time_stamp() 
    605608            msg = self.state.__str__() 
    606             #self.state.set_report_string() 
     609            self.state.set_report_string() 
    607610            self.is_power_out = False 
    608611            wx.PostEvent(self.parent, StatusEvent(status = msg )) 
     
    10511054         
    10521055        # 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) 
    10561059        state = self.state.clone_state() 
    10571060        comp_state = copy.deepcopy(self.state.state_list[str(compute_num)]) 
Note: See TracChangeset for help on using the changeset viewer.