When I call the definition below it gives me the error (inappropriate
argument type: Menu_Append() takes at least 3 arguments (2 given)
Def _init-coll-mnuFile_Items(self,parent):
Parent.Append(helpString='Create
profile'id=wxID_PEFRAMEMNUFILEITEMSO, item='&New',kind=wxITEM_NORMAL)
Calls... from core.py
Def Append(*args, **Kwargs):
"""Append(int id,string text,string help=EmptyString, int
kind=ITEM_NORMAL) -> MenuItem"""
Return _core.Menu_Append(*args,**kwargs)
Any thoughts on this? I am deffinately sending 4 arguments to the append
function. I cannot get past this error.
Thank You Cole
Robin
2
Harris, Cole wrote:
When I call the definition below it gives me the error (inappropriate
argument type: Menu_Append() takes at least 3 arguments (2 given)
Def _init-coll-mnuFile_Items(self,parent):
Parent.Append(helpString='Create
profile'id=wxID_PEFRAMEMNUFILEITEMSO, item='&New',kind=wxITEM_NORMAL)
Calls... from core.py
Def Append(*args, **Kwargs):
"""Append(int id,string text,string help=EmptyString, int
kind=ITEM_NORMAL) -> MenuItem"""
Return _core.Menu_Append(*args,**kwargs)
Any thoughts on this? I am deffinately sending 4 arguments to the append
function. I cannot get past this error.
Look at the parameter names in the docstring.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!