demo tweaks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-09-23 02:04:38 +00:00
parent d4d9af78c2
commit 0b51434e6e
4 changed files with 9 additions and 3 deletions

View File

@@ -69,6 +69,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())