[wxPython] wxButton inside html

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

[wxPython] wxButton inside html

Jochen Schaeuble-2

  First of all, sorry I'm asking so many questions on this list.
  Ok... here my newest question. I created a new class called CButton
(derived from
  wxButton). In the __init__ method of this class I call the original
constructor. Therefor
  I copied the original function definition from controls.py. If I now try
to call this newly
  created class from a html-page I always get several exceptions.

  First of all the class:

class CButton(wxButton):
    def __init__(self,*_args,**_kwargs):
        wxButton.__init__(self, _args, _kwargs)

    def __del__(self):

  And now the exceptions I get:

Traceback (innermost last):
  File "/usr/lib/python1.5/site-packages/wxPython/lib/wxpTag.py", line 114,
in HandleTag
    return self.HandleWxpTag(tag)
  File "/usr/lib/python1.5/site-packages/wxPython/lib/wxpTag.py", line 168,
in HandleWxpTag
  File "widgetTest.py", line 62, in __init__
    wxButton.__init__(self, _args, _kwargs)
  File "/usr/lib/python1.5/site-packages/wxPython/controls.py", line 55, in
    self.this = apply(controlsc.new_wxButton,_args,_kwargs)
TypeError: new_wxButton requires at least 3 arguments; 2 given

Thx in advance

wxPython-users maillist  -  [hidden email]