Re: AuiToolBar.__init__ doesn't accept keyword args
Robin Dunn <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
[email protected] wrote: > I looked into doing a patch, but it doesn't seem as simple as changing a > SWIG interface (.i) file like I thought it would be. > > I'm not very knowledgeable about C++ and SWIG, but it looks to me like > line 20645 in wxPython/src/msw/aui_wrap.cpp > (http://svn.wxwidgets.org/viewvc/wx/wxPython/trunk/src/msw/aui_wrap.cpp?view=markup) > should be changed from: > > SWIGINTERN PyObject *_wrap_new_AuiToolBar(PyObject *self, PyObject *args) { > > to: > > SWIGINTERN PyObject *_wrap_new_AuiToolBar(PyObject *self, PyObject > *args, PyObject *kwargs) { > > The file aui_wrap.cpp is generated by SWIG from the interface file > aui.i, which is what should really be modified, but I can't find > anything in it that would cause the kwargs to be missing. Any chance you > (or someone else) could look into this further? When SWIG sees overloaded methods it turns off keyword args support for them. Since the AUI code is wrapped by including the C++ header file then SWIG is seeing more of the class than I usually let it in the wrapper modules written by hand. So IOW, there really isn't a simple fix for this. The good news is that SIP (used for Phoenix) does not have this problem. -- Robin Dunn Software Craftsman http://wxPython.org -- You received this message because you are subscribed to the Google Groups "wxPython-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.