Changeset dcb0834 in sasview


Ignore:
Timestamp:
Feb 9, 2012 6:37:38 PM (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:
4a9bce1
Parents:
223a154
Message:

enabled the exit confirm dialog

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plottools/src/danse/common/plottools/PlotPanel.py

    r1b023334 rdcb0834  
    2121from binder import BindArtist 
    2222from matplotlib.font_manager import FontProperties 
    23 try: 
    24     from mpl_toolkits.mplot3d import Axes3D 
    25     PLOT_3D_ON = True 
    26 except: 
    27     PLOT_3D_ON = False 
     23 
    2824#from matplotlib import cm 
    2925#from matplotlib.ticker import LinearLocator, FixedLocator, FormatStrFormatter 
     
    4137import copy 
    4238import numpy 
     39 
     40PLOT_3D_ON = False 
     41try: 
     42    from mpl_toolkits.mplot3d import Axes3D 
     43    PLOT_3D_ON = True 
     44except: 
     45    pass 
    4346 
    4447def show_tree(obj,d=0): 
  • sansguiframe/src/sans/guiframe/gui_manager.py

    r3ee8a49 rdcb0834  
    20812081        Pop up message to make sure the user wants to quit the application 
    20822082        """ 
    2083         return True 
    2084         #message = "\nDo you really want to exit this application?        \n\n" 
    2085         #dial = wx.MessageDialog(self, message, 'Confirm Exit', 
    2086         #                   wx.YES_NO|wx.YES_DEFAULT|wx.ICON_QUESTION) 
    2087         #if dial.ShowModal() == wx.ID_YES: 
    2088         #    return True 
    2089         #else: 
    2090         #    return False     
     2083        message = "\nDo you really want to exit this application?        \n\n" 
     2084        dial = wx.MessageDialog(self, message, 'Confirm Exit', 
     2085                           wx.YES_NO|wx.YES_DEFAULT|wx.ICON_QUESTION) 
     2086        if dial.ShowModal() == wx.ID_YES: 
     2087            return True 
     2088        else: 
     2089            return False     
    20912090         
    20922091    def Close(self, event=None): 
Note: See TracChangeset for help on using the changeset viewer.