Changeset 31d5afa in sasview


Ignore:
Timestamp:
Sep 19, 2011 11:40:29 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:
a48ecbd
Parents:
ea4ed10
Message:

fixed wx version checking

File:
1 edited

Legend:

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

    r33fdb34 r31d5afa  
    159159APPLICATION_WLIST = config.APPLICATION_WLIST 
    160160IS_WIN = True 
     161CLOSE_SHOW = True 
    161162if sys.platform.count("win32")==0: 
    162163    IS_WIN = False 
    163  
     164    if int(wx.__version__.split('.')[0]) == 2: 
     165        if int(wx.__version__.split('.')[1]) < 9: 
     166            CLOSE_SHOW = False 
    164167     
    165168class ViewerFrame(wx.Frame): 
     
    836839                              Left(). 
    837840                              MinimizeButton(). 
    838                               CloseButton(True). 
     841                              CloseButton(CLOSE_SHOW). 
    839842                              TopDockable(False). 
    840843                              BottomDockable(False). 
Note: See TracChangeset for help on using the changeset viewer.