X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1fded56b375bf7a4687af1cdb182899614c1b2a8..71aba8333cc915afff9e740c944f7fa7247abacb:/wxPython/demo/wxToolBar.py diff --git a/wxPython/demo/wxToolBar.py b/wxPython/demo/wxToolBar.py index 83b99599cc..b80030b795 100644 --- a/wxPython/demo/wxToolBar.py +++ b/wxPython/demo/wxToolBar.py @@ -23,6 +23,8 @@ class TestToolBar(wxFrame): # wxTB_HORIZONTAL | wxNO_BORDER | wxTB_FLAT) #self.SetToolBar(tb) + log.write("Default toolbar tool size: %s\n" % tb.GetToolBitmapSize()) + self.CreateStatusBar() tb.AddSimpleTool(10, images.getNewBitmap(), "New", "Long help for 'New'") @@ -69,6 +71,8 @@ class TestToolBar(wxFrame): def OnToolClick(self, event): self.log.WriteText("tool %s clicked\n" % event.GetId()) + tb = self.GetToolBar() + tb.EnableTool(10, not tb.GetToolEnabled(10)) def OnToolRClick(self, event): self.log.WriteText("tool %s right-clicked\n" % event.GetId())