wxPython and overloading wxTextCtrl

Cliff Wells logiplexsoftware at earthlink.net
Fri Jan 25 15:22:11 EST 2002


On 25 Jan 2002 05:16:24 -0800
Doug Farrell wrote:

> And that's it. When I try to define my class like this:
> 
> class myTextCtrl(wxTextCtrl):
>     def __init__(self, *_args, **_kwargs):
>         wxTextCtrl.__init__(self, *_args, **_kwargs)
> 
> I get a traceback. Does anyone have any ideas how I should do what I'm
> attempting to do?

I don't.  What versions of Python/wxPython are you using?  What is the
traceback?  If you are using an older version of Python you may need to
replace

wxTextCtrl.__init__(self, *_args, **_kwargs)

with 

apply(wxTextCtrl.__init__, (self,) + _args, _kwargs))



-- 
Cliff Wells
Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308
(800) 735-0555 x308

"Then with your new power you'll accomplish all sorts of cool stuff 
 in no time, and We'll All Be Sorry.  At that point you can either 
 gloat a bit, and then relent, or go ahead and send the robot army 
 after us." - Quinn Dunkan




More information about the Python-list mailing list