Ignore:
Timestamp:
Mar 29, 2015 9: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/slit_length_calculator_panel.py

    r49ab5d7 rd5419f7f  
    2525#Slit length panel size  
    2626if sys.platform.count("win32") > 0: 
     27    PANEL_TOP = 0 
    2728    PANEL_WIDTH = 500 
    2829    PANEL_HEIGHT = 210 
    2930    FONT_VARIANT = 0 
    3031else: 
     32    PANEL_TOP = 60 
    3133    PANEL_WIDTH = 530 
    3234    PANEL_HEIGHT = 210 
     
    293295        self.panel = SlitLengthCalculatorPanel(parent=self) 
    294296        self.Bind(wx.EVT_CLOSE, self.on_close) 
    295         self.SetPosition((25, 10)) 
     297        self.SetPosition((wx.LEFT, PANEL_TOP)) 
    296298        self.Show(True) 
    297299 
Note: See TracChangeset for help on using the changeset viewer.