]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/demo/wxCalendar.py
Added some missing EVT_ functions
[wxWidgets.git] / utils / wxPython / demo / wxCalendar.py
index 6ef4e745d2e38d5cd9ac248529c5dc29f8ac3528..eda9cd341aca21a74ccfc7ebf3faff840115b557 100644 (file)
@@ -394,7 +394,8 @@ class CalendFrame(wxFrame):
 
 def SetToolPath(self, tb, id, bmp, title):
     global dir_path
 
 def SetToolPath(self, tb, id, bmp, title):
     global dir_path
-    tb.AddTool(id, wxBitmap(os.path.join(dir_path, bmp), wxBITMAP_TYPE_BMP), wxNullBitmap, false, -1, -1, title, title)
+    tb.AddSimpleTool(id, wxBitmap(os.path.join(dir_path, bmp), wxBITMAP_TYPE_BMP),
+                     title, title)
 
 
 class MyApp(wxApp):
 
 
 class MyApp(wxApp):