Hi, ALL,
I'm trying to modify toolbar demo, but am getting an error.
Could someone please sched some light?
Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)]
wx.version: 3.0.1.0.b20140104 msw (classic)
pid: 3184
Traceback (most recent call last):
File "C:\Program Files\wxPython3.0 Docs and Demos\demo\ToolBar.py",
line 203, in OnButton
win = TestToolBar(self, self.log)
File "C:\Program Files\wxPython3.0 Docs and Demos\demo\ToolBar.py",
line 121, in __init__
tool = tb.AddCheckTool(60, "Check Tool", copy_bmp, open_bmp, "Check Tool")
File "C:\Python27\lib\site-packages\wx-3.0-msw\wx\_controls.py",
line 3730, in AddCheckTool
shortHelp, longHelp, clientData)
File "C:\Python27\lib\site-packages\wx-3.0-msw\wx\_controls.py",
line 3608, in DoAddTool
return _controls_.ToolBarBase_DoAddTool(*args, **kwargs)
TypeError: in method 'ToolBarBase_DoAddTool', expected argument 4 of
type 'wxBitmap const &'
The code I'm using is as follows:
tool = tb.AddCheckTool(60, "Check Tool", copy_bmp, open_bmp,
"Check Tool")
Thank you in advance.