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

    r60dca65c rd5419f7f  
    4747    FONT_VARIANT = 0 
    4848else: 
    49     PANEL_TOP = 40 
     49    PANEL_TOP = 60 
    5050    PANEL_WIDTH = 620 
    5151    PANEL_HEIGHT = 370 
     
    379379        self.orient_combo = self._fill_orient_combo() 
    380380        self.orient_combo.Show(False) 
     381 
    381382        self.bt_compute = wx.Button(self, wx.NewId(), 'Compute') 
    382383        self.bt_compute.Bind(wx.EVT_BUTTON, self.on_compute) 
    383384        self.bt_compute.SetToolTipString("Compute 2D Scattering Pattern.") 
     385 
    384386        self.bt_help = wx.Button(self, wx.NewId(), 'HELP') 
    385387        self.bt_help.Bind(wx.EVT_BUTTON, self.on_help) 
    386388        self.bt_help.SetToolTipString("Help on Scatter Calculator") 
     389 
     390        self.bt_close = wx.Button(self, wx.ID_CANCEL, 'Close') 
     391        self.bt_close.Bind(wx.EVT_BUTTON, self.on_panel_close) 
     392        self.bt_close.SetToolTipString("Close this window") 
     393 
    387394        self.button_sizer.AddMany([(self.time_text , 0, wx.LEFT, 20), 
    388395                                   (self.orient_combo , 0, wx.LEFT, 20), 
    389396                                   (self.bt_compute, 0, wx.LEFT, 20), 
    390                                    (self.bt_help, 0, wx.LEFT, 5)]) 
     397                                   (self.bt_help, 0, wx.LEFT, 20), 
     398                                   (self.bt_close, 0, wx.LEFT, 5)]) 
    391399 
    392400    def estimate_ctime(self): 
     
    12121220    def on_panel_close(self, event): 
    12131221        """ 
    1214         On Close SLD panel 
    1215         """ 
    1216         #Not implemented    
     1222        close the window containing this panel 
     1223        """ 
     1224        self.parent.Close() 
    12171225 
    12181226class OmfPanel(ScrolledPanel, PanelBase): 
Note: See TracChangeset for help on using the changeset viewer.