Changeset 234a3fa in sasview


Ignore:
Timestamp:
Jun 10, 2011 4:47:50 PM (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:
e5ceb52
Parents:
b46912b
Message:

trying to fix mac customtree style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_panel.py

    rc5a769e r234a3fa  
    5757    BUTTON_WIDTH = 80 
    5858    FONT_VARIANT = 0 
     59    IS_MAC = False 
    5960else: 
    6061    PANEL_WIDTH = 255 
     
    6364    BUTTON_WIDTH = 100 
    6465    FONT_VARIANT = 1 
     66    IS_MAC = True 
    6567 
    6668STYLE_FLAG =wx.RAISED_BORDER|CT.TR_HAS_BUTTONS| CT.TR_HIDE_ROOT|\ 
     
    7476    def __init__(self, parent,*args, **kwds): 
    7577        #agwstyle is introduced in wx.2.8.11 but is not working for mac 
    76         if sys.platform.count("darwin") != 0: 
     78        if IS_MAC: 
    7779            try: 
    7880                kwds['style'] = STYLE_FLAG 
    7981                CT.CustomTreeCtrl.__init__(self, parent, *args, **kwds) 
    8082            except: 
    81                 del kwds['style'] 
     83                kwds['style'] = wx.RAISED_BORDER|wx.TR_HAS_BUTTONS|wx.TR_HIDE_ROOT|\ 
     84                    wx.WANTS_CHARS|wx.TR_HAS_VARIABLE_ROW_HEIGHT 
    8285                CT.CustomTreeCtrl.__init__(self, parent, *args, **kwds) 
    8386        else: 
Note: See TracChangeset for help on using the changeset viewer.