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/data_operator.py

    r49ab5d7 rd5419f7f  
    11""" 
    2 GUI for the data operation 
     2GUI for the data operations panel (sum and multiply) 
    33""" 
    44import wx 
     
    1717#Control panel width  
    1818if sys.platform.count("win32") > 0: 
     19    PANEL_TOP = 0 
    1920    PANEL_WIDTH = 790 
    2021    PANEL_HEIGTH = 370 
     
    2324    ON_MAC = False 
    2425else: 
     26    PANEL_TOP = 60 
    2527    _BOX_WIDTH = 230 
    2628    PANEL_WIDTH = 900 
     
    963965        self.panel = DataOperPanel(parent=self) 
    964966        wx.EVT_CLOSE(self, self.OnClose) 
    965         self.SetPosition((25, 10)) 
     967        self.SetPosition((wx.LEFT, PANEL_TOP)) 
    966968        self.Show() 
    967969 
Note: See TracChangeset for help on using the changeset viewer.