Changeset b00086f in sasview


Ignore:
Timestamp:
Feb 10, 2012 9:38:00 AM (13 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:
664c5a7
Parents:
4a9bce1
Message:

apply confirm dialog only on x icon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/gui_manager.py

    rdcb0834 rb00086f  
    310310        #self._check_update(None) 
    311311        # Register the close event so it calls our own method 
    312         wx.EVT_CLOSE(self, self.Close) 
     312        wx.EVT_CLOSE(self, self.WindowClose) 
    313313        # Register to status events 
    314314        self.Bind(EVT_STATUS, self._on_status_event) 
     
    20892089            return False     
    20902090         
    2091     def Close(self, event=None): 
    2092         """ 
    2093         Quit the application 
     2091    def WindowClose(self, event=None): 
     2092        """ 
     2093        Quit the application from x icon 
    20942094        """ 
    20952095        flag = self.quit_guiframe() 
    20962096        if flag: 
    2097             wx.Exit() 
    2098             sys.exit() 
    2099  
     2097            self.Close() 
     2098             
     2099    def Close(self, event=None): 
     2100        """ 
     2101        Quit the application 
     2102        """ 
     2103        wx.Exit() 
     2104        sys.exit() 
     2105             
    21002106    def _check_update(self, event=None):  
    21012107        """ 
Note: See TracChangeset for help on using the changeset viewer.