In wxPython 2.3.2b6, the interface for wxStatusBar changed. In particular, wxStatusBar no longer supports the 'pos' or 'size' keywords (understandable, since these are essentially meaningless in a statusbar widget anyway). If you are getting the error "TypeError: size is an invalid keyword argument for this function," you need to make the following change:
(Obviously, the ID will be different for each control!)
Someone with CVS access should probably make this change to the current source, as well. I have not tested it, but this change should not affect those running older versions of wxPython, since the underlying class implementation in wxWindows uses defaulted constructor arguments.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In wxPython 2.3.2b6, the interface for wxStatusBar changed. In particular, wxStatusBar no longer supports the 'pos' or 'size' keywords (understandable, since these are essentially meaningless in a statusbar widget anyway). If you are getting the error "TypeError: size is an invalid keyword argument for this function," you need to make the following change:
from:
self.statusBar = wxStatusBar(id = wxID_INSPECTORFRAMESTATUSBAR, name = 'statusBar', parent = self, pos = wxPoint(0, 430), size = wxSize(282, 20), style = wxST_SIZEGRIP)
to:
self.statusBar = wxStatusBar(id = wxID_INSPECTORFRAMESTATUSBAR, name = 'statusBar', parent = self, style = wxST_SIZEGRIP)
In each of the following three files:
Inspector.py: 85
ClassBrowser.py:39
ErrorStackFrm:45
(Obviously, the ID will be different for each control!)
Someone with CVS access should probably make this change to the current source, as well. I have not tested it, but this change should not affect those running older versions of wxPython, since the underlying class implementation in wxWindows uses defaulted constructor arguments.