]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ToolBar.py
Compile fixes for Panther
[wxWidgets.git] / 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)
 
                 ))
         self.Bind(wx.EVT_COMBOBOX, self.OnCombo, id=cbID)
 
+        tb.AddSeparator()
         search = TestSearchCtrl(tb, size=(150,-1), doSearch=self.DoSearch)
         tb.AddControl(search)
 
         search = TestSearchCtrl(tb, size=(150,-1), doSearch=self.DoSearch)
         tb.AddControl(search)
 
@@ -141,7 +142,6 @@ class TestToolBar(wx.Frame):
         tb.Realize()
 
 
         tb.Realize()
 
 
-
     def DoSearch(self,  text):
         # called by TestSearchCtrl
         self.log.WriteText("DoSearch: %s\n" % text)
     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)
     def OnButton(self, evt):
         win = TestToolBar(self, self.log)
         win.Show(True)
+        self.frame = win
 
 
 #---------------------------------------------------------------------------
 
 
 #---------------------------------------------------------------------------