Ignore:
Timestamp:
Mar 29, 2015 11:05:43 PM (9 years ago)
Author:
butler
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:
a3f125f0
Parents:
60dca65c
Message:
  • Fixed problem with mac vs pc positioning of tool panels for now -

opened ticket to completely rethink panels in mac vs pc

  • Added close button/activated close method for tool panels that did not

have it. Tool panels are now much more consistant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/perspectives/calculator/kiessig_calculator_panel.py

    r26d2d88 rd5419f7f  
    2222#Slit length panel size 
    2323if sys.platform.count("win32") > 0: 
     24    PANEL_TOP = 0 
    2425    PANEL_WIDTH = 500 
    2526    PANEL_HEIGHT = 230 
    2627    FONT_VARIANT = 0 
    2728else: 
     29    PANEL_TOP = 60 
    2830    PANEL_WIDTH = 560 
    2931    PANEL_HEIGHT = 230 
     
    228230        self.panel = KiessigThicknessCalculatorPanel(parent=self) 
    229231        self.Bind(wx.EVT_CLOSE, self.on_close) 
    230         self.SetPosition((25, 10)) 
     232        self.SetPosition((wx.LEFT, PANEL_TOP)) 
    231233        self.Show(True) 
    232234         
Note: See TracChangeset for help on using the changeset viewer.