[wxPython-users] Re: name space misunderstanding

Philippe C. Martin pmartin at snakecard.com
Fri Dec 15 07:58:01 PST 2006


On Friday 15 December 2006 09:49, Donn Ingle wrote:
> > editor.EditorNotebook(parent=self,id=-1,style=wx.NB_LEFT)
> > I get a
> > TypeError: __init__() got an unexpected keyword argument 'style'
> > Yet if I look at the code, style is there ...
>
> I have seen this in other places. As far as I know it means the function is
> not expecting **kwargs, only an argument list. So, try dropping the style=
> part.
>
> /d
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org

And that works ... but I do want those tabs on the left :-) !

I'll have to patch editor.py for now I guess.

Thanks,

Philippe


-- 
_________________________
Philippe C. Martin
www.snakecard.com
_________________________





More information about the wxpython-users mailing list