Changeset 2567003 in sasview


Ignore:
Timestamp:
May 2, 2011 9:29:58 AM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
339b563
Parents:
6f23daf
Message:

fix sife for button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_panel.py

    rc461ebe r2567003  
    4747PANEL_HEIGHT = 700 
    4848CBOX_WIDTH = 140 
     49BUTTON_WIDTH = 80 
    4950STYLE_FLAG =wx.RAISED_BORDER|CT.TR_HAS_BUTTONS| CT.TR_HIDE_ROOT|\ 
    5051                    wx.WANTS_CHARS|CT.TR_HAS_VARIABLE_ROW_HEIGHT 
     
    226227        """ 
    227228        w, _ = self.GetSize() 
    228         self.bt_add = wx.Button(self, wx.NewId(), "Load Data") 
     229        self.bt_add = wx.Button(self, wx.NewId(), "Load Data",  
     230                                size=(BUTTON_WIDTH, -1)) 
    229231        self.bt_add.SetToolTipString("Load data files") 
    230232        wx.EVT_BUTTON(self, self.bt_add.GetId(), self._load_data) 
    231         #self.bt_remove = wx.Button(self, wx.NewId(), "Remove Data") 
     233        #self.bt_remove = wx.Button(self, wx.NewId(), "Remove Data", 
     234        # size=(BUTTON_WIDTH, -1)) 
    232235        #self.bt_remove.SetToolTipString("Remove data from the application") 
    233236        #wx.EVT_BUTTON(self, self.bt_remove.GetId(), self.on_remove) 
    234         self.bt_import = wx.Button(self, wx.NewId(), "Send To") 
     237        self.bt_import = wx.Button(self, wx.NewId(), "Send To", 
     238                                    size=(BUTTON_WIDTH, -1)) 
    235239        self.bt_import.SetToolTipString("Send set of Data to active perspective") 
    236240        wx.EVT_BUTTON(self, self.bt_import.GetId(), self.on_import) 
     
    240244                        self._on_perspective_selection) 
    241245     
    242         self.bt_append_plot = wx.Button(self, wx.NewId(), "Append Plot To") 
     246        self.bt_append_plot = wx.Button(self, wx.NewId(), "Append Plot To", 
     247                                        size=(BUTTON_WIDTH, -1)) 
    243248        self.bt_append_plot.SetToolTipString("Plot the selected data in the active panel") 
    244249        wx.EVT_BUTTON(self, self.bt_append_plot.GetId(), self.on_append_plot) 
    245250         
    246         self.bt_plot = wx.Button(self, wx.NewId(), "New Plot") 
     251        self.bt_plot = wx.Button(self, wx.NewId(), "New Plot",  
     252                                 size=(BUTTON_WIDTH, -1)) 
    247253        self.bt_plot.SetToolTipString("To trigger plotting") 
    248254        wx.EVT_BUTTON(self, self.bt_plot.GetId(), self.on_plot) 
    249255         
    250         self.bt_freeze = wx.Button(self, wx.NewId(), "Freeze Theory") 
     256        self.bt_freeze = wx.Button(self, wx.NewId(), "Freeze Theory",  
     257                                   size=(BUTTON_WIDTH, -1)) 
    251258        self.bt_freeze.SetToolTipString("To trigger freeze a theory") 
    252259        wx.EVT_BUTTON(self, self.bt_freeze.GetId(), self.on_freeze) 
     
    259266        self.sizer3.AddMany([(self.bt_add), 
    260267                             ((10, 10)), 
    261                              (self.bt_import), 
     268                             (self.bt_import, 0, wx.EXPAND|wx.RIGHT, 5), 
    262269                              (self.perspective_cbox, wx.EXPAND), 
    263270                              (self.bt_append_plot), 
Note: See TracChangeset for help on using the changeset viewer.