]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxFloatBar.py
Removed deprecation warnings in OGL and Gizmos
[wxWidgets.git] / wxPython / demo / wxFloatBar.py
index ad3057584ed7f009df4955f436becceb7eea4710..ff323abe7e991c928aa5ac3a2cdc9656188e72b2 100644 (file)
@@ -41,8 +41,7 @@ class TestFloatBar(wxFrame):
         tb.AddSeparator()
 
 
-        tb.AddTool(60, images.getTog1Bitmap(), images.getTog2Bitmap(),
-                   shortHelpString="Toggle with 2 bitmaps", isToggle=true)
+        tb.AddCheckTool(60, images.getTog1Bitmap(), images.getTog2Bitmap())
         EVT_TOOL(self, 60, self.OnToolClick)
         EVT_TOOL_RCLICKED(self, 60, self.OnToolRClick)
         tb.Realize()
@@ -65,15 +64,13 @@ class TestFloatBar(wxFrame):
 
     def OnToolRClick(self, event):
         self.log.WriteText("tool %s right-clicked\n" % event.GetId())
- #   def test(self, event):
- #       self.log.WriteText("Button clicked!")
 
 #---------------------------------------------------------------------------
 
 def runTest(frame, nb, log):
     win = TestFloatBar(frame, log)
     frame.otherWin = win
-    win.Show(true)
+    win.Show(True)
 
 #---------------------------------------------------------------------------