Changeset f8b79d6 in sasview for sansview/perspectives


Ignore:
Timestamp:
Sep 17, 2009 7:06:16 AM (15 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:
920a6e5
Parents:
104f3da
Message:

make the help window splitter more dynamic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/helpPanel.py

    r4faf4ba rf8b79d6  
    22import wx 
    33import wx.html as html 
     4from wx.lib.splitter import MultiSplitterWindow 
    45import os 
    56def help(): 
     
    6465             contains help info 
    6566        """ 
    66         vbox1  =wx.FlexGridSizer(1, 2,0,0) 
    67  
    68         lpanel = wx.Panel(self, -1,style=wx.BORDER_SUNKEN) 
    69         rpanel = wx.Panel(self, -1) 
     67       
     68        splitter = MultiSplitterWindow(self, style=wx.SP_LIVE_UPDATE) 
     69        rpanel = wx.Panel(splitter, -1) 
     70        lpanel = wx.Panel(splitter, -1,style=wx.BORDER_SUNKEN) 
    7071         
    71         vbox1.AddMany([ (lpanel,-1,wx.EXPAND,0),  
    72             (rpanel, -1,wx.EXPAND,0)]) 
    73         vbox1.AddGrowableRow(0, 0) 
    74         vbox1.AddGrowableCol(0, 1) 
    75         
    76  
    7772        vbox = wx.BoxSizer(wx.VERTICAL) 
    7873        header = wx.Panel(rpanel, -1) 
     
    137132        lpanel.SetFocus() 
    138133         
     134        vbox1 = wx.BoxSizer(wx.HORIZONTAL) 
     135        vbox1.Add(splitter,1,wx.EXPAND) 
     136        splitter.AppendWindow(lpanel, 200) 
     137        splitter.AppendWindow(rpanel) 
    139138        self.SetSizer(vbox1) 
    140139        
Note: See TracChangeset for help on using the changeset viewer.