various demo tweaks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-02-14 19:08:57 +00:00
parent aa0cd0a6e4
commit 2ff24ec7ed
6 changed files with 27 additions and 22 deletions

View File

@@ -23,8 +23,8 @@ class TestToolBar(wxFrame):
self.CreateStatusBar()
#tb.AddSimpleTool(10, images.getNewBitmap(), "New", "Long help for 'New'")
tb.AddLabelTool(10, "New", images.getNewBitmap(), shortHelp="New", longHelp="Long help for 'New'")
tb.AddSimpleTool(10, images.getNewBitmap(), "New", "Long help for 'New'")
#tb.AddLabelTool(10, "New", images.getNewBitmap(), shortHelp="New", longHelp="Long help for 'New'")
EVT_TOOL(self, 10, self.OnToolClick)
EVT_TOOL_RCLICKED(self, 10, self.OnToolRClick)
@@ -47,9 +47,9 @@ class TestToolBar(wxFrame):
shortHelp="Toggle this")
EVT_TOOL(self, 50, self.OnToolClick)
#tb.AddCheckTool(60, '', images.getTog1Bitmap(), images.getTog2Bitmap(),
# shortHelp="Toggle with 2 bitmaps")
#EVT_TOOL(self, 60, self.OnToolClick)
## tb.AddCheckTool(60, images.getTog1Bitmap(), images.getTog2Bitmap(),
## shortHelp="Toggle with 2 bitmaps")
## EVT_TOOL(self, 60, self.OnToolClick)
EVT_TOOL_ENTER(self, -1, self.OnToolEnter)
EVT_TOOL_RCLICKED(self, -1, self.OnToolRClick) # Match all
@@ -110,16 +110,15 @@ def runTest(frame, nb, log):
overview = """\
"""
if __name__ == '__main__':
import sys,os
import run
run.main(['', os.path.basename(sys.argv[0])])