Changeset 234a3fa in sasview
- Timestamp:
- Jun 10, 2011 4:47:50 PM (14 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/data_panel.py
rc5a769e r234a3fa 57 57 BUTTON_WIDTH = 80 58 58 FONT_VARIANT = 0 59 IS_MAC = False 59 60 else: 60 61 PANEL_WIDTH = 255 … … 63 64 BUTTON_WIDTH = 100 64 65 FONT_VARIANT = 1 66 IS_MAC = True 65 67 66 68 STYLE_FLAG =wx.RAISED_BORDER|CT.TR_HAS_BUTTONS| CT.TR_HIDE_ROOT|\ … … 74 76 def __init__(self, parent,*args, **kwds): 75 77 #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: 77 79 try: 78 80 kwds['style'] = STYLE_FLAG 79 81 CT.CustomTreeCtrl.__init__(self, parent, *args, **kwds) 80 82 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 82 85 CT.CustomTreeCtrl.__init__(self, parent, *args, **kwds) 83 86 else:
Note: See TracChangeset
for help on using the changeset viewer.