Added listbook demo and also some other demo tweaks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-10-01 23:28:31 +00:00
parent 2d28c41cbd
commit 2f0f3b0fd6
5 changed files with 162 additions and 7 deletions

View File

@@ -18,6 +18,7 @@ import wx.html
import images
##wx.Trap()
#---------------------------------------------------------------------------
@@ -26,6 +27,7 @@ _treeList = [
# new stuff
('Recent Additions', [
'wxVListBox',
'wxListbook',
]),
# managed windows == things with a (optional) caption you can close
@@ -73,6 +75,7 @@ _treeList = [
'wxGenericDirCtrl',
'wxGrid',
'wxGrid_MegaExample',
'wxListbook',
'wxListBox',
'wxListCtrl',
'wxListCtrl_virtual',
@@ -328,8 +331,8 @@ class wxPythonDemo(wx.Frame):
splitter2 = wx.SplitterWindow(splitter, -1)
def EmptyHandler(evt): pass
wx.EVT_ERASE_BACKGROUND(splitter, EmptyHandler)
wx.EVT_ERASE_BACKGROUND(splitter2, EmptyHandler)
#wx.EVT_ERASE_BACKGROUND(splitter, EmptyHandler)
#wx.EVT_ERASE_BACKGROUND(splitter2, EmptyHandler)
# Prevent TreeCtrl from displaying all items after destruction when True
self.dying = False
@@ -460,13 +463,21 @@ class wxPythonDemo(wx.Frame):
# add the windows to the splitter and split it.
splitter2.SplitHorizontally(self.nb, self.log, 450)
splitter2.SplitHorizontally(self.nb, self.log, -120)
splitter.SplitVertically(self.tree, splitter2, 180)
splitter.SetMinimumPaneSize(20)
splitter2.SetMinimumPaneSize(20)
# Make the splitter on the right expand the top wind when resized
def SplitterOnSize(evt):
splitter = evt.GetEventObject()
sz = splitter.GetSize()
splitter.SetSashPosition(sz.height - 120, False)
evt.Skip()
wx.EVT_SIZE(splitter2, SplitterOnSize)
# select initial items
self.nb.SetSelection(0)