X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6230a84fdc327322f7bc6073b92cf34a8f92c47b..f97c9b5bf2452c73434eb548e70115ac7ca60a83:/utils/wxPython/demo/wxCalendar.py diff --git a/utils/wxPython/demo/wxCalendar.py b/utils/wxPython/demo/wxCalendar.py index 6ef4e745d2..eda9cd341a 100644 --- a/utils/wxPython/demo/wxCalendar.py +++ b/utils/wxPython/demo/wxCalendar.py @@ -394,7 +394,8 @@ class CalendFrame(wxFrame): 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):