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:
@@ -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)
|
search = TestSearchCtrl(tb, size=(150,-1), doSearch=self.DoSearch)
|
||||||
tb.AddControl(search)
|
tb.AddControl(search)
|
||||||
|
|
||||||
@@ -141,7 +142,6 @@ class TestToolBar(wx.Frame):
|
|||||||
tb.Realize()
|
tb.Realize()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def DoSearch(self, text):
|
def DoSearch(self, text):
|
||||||
# called by TestSearchCtrl
|
# called by TestSearchCtrl
|
||||||
self.log.WriteText("DoSearch: %s\n" % text)
|
self.log.WriteText("DoSearch: %s\n" % text)
|
||||||
@@ -200,6 +200,7 @@ class TestPanel(wx.Panel):
|
|||||||
def OnButton(self, evt):
|
def OnButton(self, evt):
|
||||||
win = TestToolBar(self, self.log)
|
win = TestToolBar(self, self.log)
|
||||||
win.Show(True)
|
win.Show(True)
|
||||||
|
self.frame = win
|
||||||
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user