]> git.saurik.com Git - wxWidgets.git/commitdiff
Put a separator between the controls
authorRobin Dunn <robin@alldunn.com>
Mon, 11 Dec 2006 21:27:41 +0000 (21:27 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 11 Dec 2006 21:27:41 +0000 (21:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/ToolBar.py

index c9353029103aee95b2adce1493896ab725cc1664..5991ffedb0a71595b4d3e8b9aa03a00574ba1f44 100644 (file)
@@ -133,6 +133,7 @@ class TestToolBar(wx.Frame):
                 ))
         self.Bind(wx.EVT_COMBOBOX, self.OnCombo, id=cbID)
 
+        tb.AddSeparator()
         search = TestSearchCtrl(tb, size=(150,-1), doSearch=self.DoSearch)
         tb.AddControl(search)
 
@@ -141,7 +142,6 @@ class TestToolBar(wx.Frame):
         tb.Realize()
 
 
-
     def DoSearch(self,  text):
         # called by TestSearchCtrl
         self.log.WriteText("DoSearch: %s\n" % text)
@@ -200,6 +200,7 @@ class TestPanel(wx.Panel):
     def OnButton(self, evt):
         win = TestToolBar(self, self.log)
         win.Show(True)
+        self.frame = win
 
 
 #---------------------------------------------------------------------------