Changeset 228a8bb in sasview


Ignore:
Timestamp:
Jun 11, 2011 11:47:41 AM (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:
8bb0660
Parents:
af7ba61
Message:

more accurate version checking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_panel.py

    raf7ba61 r228a8bb  
    1616toks = wx.__version__.split('.') 
    1717if int(toks[1]) < 9: 
    18     wx_version = 8 
     18    if int(toks[2]) < 12: 
     19        wx_version = 811 
     20    else: 
     21        wx_version = 812 
    1922else: 
    20     wx_version = 9 
     23    wx_version = 900 
    2124import sys 
    2225import warnings 
     
    8285    def __init__(self, parent,*args, **kwds): 
    8386        #agwstyle is introduced in wx.2.8.11 but is not working for mac 
    84         if IS_MAC and wx_version < 9: 
     87        if IS_MAC and wx_version < 812: 
    8588            try: 
    8689                kwds['style'] = STYLE_FLAG 
Note: See TracChangeset for help on using the changeset viewer.