Changeset e095c3a9 in sasview for sansguiframe/src


Ignore:
Timestamp:
Aug 25, 2011 10:05:15 AM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
ef4a4ea
Parents:
886657f
Message:

databox expanding as the panel expands / and style:sunken

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/data_panel.py

    r3603b2e re095c3a9  
    162162        self.vbox  = wx.BoxSizer(wx.VERTICAL) 
    163163        self.sizer1 = wx.BoxSizer(wx.VERTICAL) 
    164         self.sizer1.SetMinSize((w/13, h*2/5)) 
     164        self.sizer1.SetMinSize(wx.Size(w/13, h*2/5)) 
    165165       
    166166        self.sizer2 = wx.BoxSizer(wx.VERTICAL) 
     
    170170        
    171171        self.vbox.Add(self.sizer5, 0, wx.EXPAND|wx.ALL,1) 
    172         self.vbox.Add(self.sizer1, 0, wx.EXPAND|wx.ALL,0) 
     172        self.vbox.Add(self.sizer1, 1, wx.EXPAND|wx.ALL,0) 
    173173        self.vbox.Add(self.sizer2, 0, wx.EXPAND|wx.ALL,1) 
    174174        self.vbox.Add(self.sizer3, 0, wx.EXPAND|wx.ALL,5) 
     
    331331        self.rb_batch_mode.SetValue(False) 
    332332        self.sizer4.AddMany([(self.rb_single_mode,0, wx.ALL,5), 
    333                             (self.rb_batch_mode,0, wx.ALL,5)]) 
     333                            (self.rb_batch_mode,0, wx.ALL,5), 
     334                            (20,80)]) 
    334335         
    335336    def on_single_mode(self, event): 
     
    355356        tree_ctrl_label = wx.StaticText(self, -1, "Data") 
    356357        tree_ctrl_label.SetForegroundColour('blue') 
    357         self.tree_ctrl = DataTreeCtrl(parent=self) 
     358        self.tree_ctrl = DataTreeCtrl(parent=self, style=wx.SUNKEN_BORDER) 
    358359        self.tree_ctrl.Bind(CT.EVT_TREE_ITEM_CHECKING, self.on_check_item) 
    359360        tree_ctrl_theory_label = wx.StaticText(self, -1, "Theory") 
    360361        tree_ctrl_theory_label.SetForegroundColour('blue') 
    361         self.tree_ctrl_theory = DataTreeCtrl(parent=self) 
    362         self.tree_ctrl_theory.Bind(CT.EVT_TREE_ITEM_CHECKING, self.on_check_item) 
     362        self.tree_ctrl_theory = DataTreeCtrl(parent=self,  
     363                                                    style=wx.SUNKEN_BORDER) 
     364        self.tree_ctrl_theory.Bind(CT.EVT_TREE_ITEM_CHECKING,  
     365                                                    self.on_check_item) 
    363366        self.sizer1.Add(tree_ctrl_label, 0, wx.LEFT, 10) 
    364367        self.sizer1.Add(self.tree_ctrl, 1, wx.EXPAND|wx.ALL, 10) 
Note: See TracChangeset for help on using the changeset viewer.