I want to define several plugins.
They all inherit from the superclass Plugin.
Each plugin consists on a wx.Panel that have a more specific method called “draw”.
How can I define a class as a Panel and afterwards call that class in my frame?
I’ve tried like this:
class Panel(wx.Panel):
def __init__(self, parent):
wx.Panel(self, parent)
but it gives me this error:
in __init__
_windows_.Panel_swiginit(self,_windows_.new_Panel(*args, **kwargs))
TypeError: in method 'new_Panel', expected argument 1 of type 'wxWindow *'
Thanks in advance!
1 Answer