X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f7f284d555df50912037296c5d74a2911975bce..68fc5c8025e38b9d827383fbfe7ce509ae331c1f:/wxPython/demo/ToolBar.py diff --git a/wxPython/demo/ToolBar.py b/wxPython/demo/ToolBar.py index c935302910..5991ffedb0 100644 --- a/wxPython/demo/ToolBar.py +++ b/wxPython/demo/ToolBar.py @@ -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 #---------------------------------------------------------------------------