Changeset 732b03c in sasview


Ignore:
Timestamp:
May 11, 2011 4:51:30 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:
b46b1b9
Parents:
8cb8c89
Message:

trying to fixed mac double click problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    r8cb8c89 r732b03c  
    22682268            logging.error(msg) 
    22692269        return True 
    2270  
     2270        self.Bind(wx.EVT_ACTIVATE_APP, self.OnActivate) 
     2271         
    22712272    def open_file(self): 
    22722273        """ 
     
    23982399        self.frame.Show(True) 
    23992400        event.Skip() 
    2400        
     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     
    24012418if __name__ == "__main__":  
    24022419    app = ViewApp(0) 
Note: See TracChangeset for help on using the changeset viewer.