Changeset 73581ce in sasview


Ignore:
Timestamp:
Apr 1, 2011 4:05:50 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
66ddd57
Parents:
210e21f
Message:

fix customtreectrl style for mac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_panel.py

    r210e21f r73581ce  
    3232    """ 
    3333    def __init__(self, parent,*args, **kwds): 
    34         #agwstyle is introduced in wx.2.8.11 
    35         try: 
    36             kwds['agwStyle'] = STYLE_FLAG 
    37         except: 
     34        #agwstyle is introduced in wx.2.8.11 but is not working for mac 
     35        if sys.platform.count("darwin") != 0: 
    3836            try: 
    3937                kwds['style'] = STYLE_FLAG 
    4038            except: 
    4139                raise 
     40        else: 
     41            #agwstyle is introduced in wx.2.8.11 .argument working only for windows 
     42            try: 
     43                kwds['agwStyle'] = STYLE_FLAG 
     44            except: 
     45                try: 
     46                    kwds['style'] = STYLE_FLAG 
     47                except: 
     48                    raise 
    4249         
    4350        CT.CustomTreeCtrl.__init__(self, parent, *args, **kwds) 
Note: See TracChangeset for help on using the changeset viewer.