Put a separator between the controls

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-12-11 21:27:41 +00:00
parent c33c11fa1d
commit eebbbda154

View 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
#---------------------------------------------------------------------------