Changeset b46b1b9 in sasview


Ignore:
Timestamp:
May 11, 2011 5:06:46 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:
0b22cc6
Parents:
732b03c
Message:

reverting previous commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    r732b03c rb46b1b9  
    22682268            logging.error(msg) 
    22692269        return True 
    2270         self.Bind(wx.EVT_ACTIVATE_APP, self.OnActivate) 
    2271          
     2270 
    22722271    def open_file(self): 
    22732272        """ 
     
    23992398        self.frame.Show(True) 
    24002399        event.Skip() 
    2401          
    2402     def OnActivate(self, event): 
    2403         # if this is an activate event, rather than something else, like iconize. 
    2404         if event.GetActive(): 
    2405             self.BringWindowToFront() 
    2406         event.Skip()    
    2407            
    2408     def BringWindowToFront(self): 
    2409         try: # it's possible for this event to come when the frame is closed 
    2410             self.GetTopWindow().Raise() 
    2411         except: 
    2412             pass 
    2413                  
    2414     def MacReopenApp(self): 
    2415         """Called when the doc icon is clicked, and ???""" 
    2416         self.BringWindowToFront() 
    2417      
     2400       
    24182401if __name__ == "__main__":  
    24192402    app = ViewApp(0) 
Note: See TracChangeset for help on using the changeset viewer.