Re: [[wxPython] wxButton inside html]

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: [[wxPython] wxButton inside html]

Niki Spahiev-3
"Jochen Schaeuble" <[hidden email]> wrote:
>
> class CButton(wxButton):
>     def __init__(self,*_args,**_kwargs):
>         wxButton.__init__(self, _args, _kwargs)
>

You cant do that way. Instead do

     def __init__(self,*_args,**_kwargs):
         apply( wxButton.__init__, (self,) + _args, _kwargs )

see python doc why.

Niki Spahiev
e-mail: [hidden email]

____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

_______________________________________________
wxPython-users maillist  -  [hidden email]
http://starship.python.net/mailman/listinfo/wxpython-users