Changeset 3f0c330 in sasview for guiframe


Ignore:
Timestamp:
May 18, 2011 3:07:22 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:
0160ecb
Parents:
e6cee09
Message:

DataPanel?: trying to make button and font sizes right for MAC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_panel.py

    radf44c2 r3f0c330  
    4949PLUGINS_WLIST = config.PLUGINS_WLIST 
    5050APPLICATION_WLIST = config.APPLICATION_WLIST 
     51 
     52#Control panel width  
     53if sys.platform.count("win32") > 0: 
     54    PANEL_WIDTH = 235 
     55    PANEL_HEIGHT = 700 
     56    CBOX_WIDTH = 140 
     57    BUTTON_WIDTH = 80 
     58    FONT_VARIANT = 0 
     59else: 
     60    PANEL_WIDTH = 255 
     61    PANEL_HEIGHT = 750 
     62    CBOX_WIDTH = 155 
     63    BUTTON_WIDTH = 100 
     64    FONT_VARIANT = 1 
     65 
    5166try: 
    5267    PANEL_WIDTH = config.DATA_PANEL_WIDTH 
    5368    PANEL_HEIGHT = config.DATA_PANEL_HEIGHT 
    5469except: 
    55     PANEL_WIDTH = 235 
    56     PANEL_HEIGHT = 700 
    57 CBOX_WIDTH = 140 
    58 BUTTON_WIDTH = 80 
     70    pass 
     71 
     72 
    5973STYLE_FLAG =wx.RAISED_BORDER|CT.TR_HAS_BUTTONS| CT.TR_HIDE_ROOT|\ 
    6074                    wx.WANTS_CHARS|CT.TR_HAS_VARIABLE_ROW_HEIGHT 
     
    113127        PanelBase.__init__(self) 
    114128        self.SetupScrolling() 
     129        #Set window's font size  
     130        self.SetWindowVariant(variant=FONT_VARIANT) 
    115131        self.loader = Loader()   
    116132        #Default location 
Note: See TracChangeset for help on using the changeset viewer.