]> git.saurik.com Git - wxWidgets.git/commitdiff
some more test code for the toolbar
authorRobin Dunn <robin@alldunn.com>
Thu, 18 Sep 2003 20:48:50 +0000 (20:48 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 18 Sep 2003 20:48:50 +0000 (20:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/wxToolBar.py

index a22833e37ae4fbe8965b8e0cb0081da1089b7ea2..b80030b795fd3e03e0084e97d92b017e05b814db 100644 (file)
@@ -71,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())