X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0148fe1e2a2ea076bcd7a647c0b7946de0e0f990..3af4e610b182d2aeb504bdeeef8b44cb1279f28e:/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):