Hi,
Thanks for the example.
So base classes has to be derived from the "object" python class.Is my undrestanding correct?.
Remember that when you use classes in python it would look something like this:
-
class myFrame(wx.Frame):
-
def __init__(self,parent,id,title):
-
wx.Frame.__init__(self,parent=None,id,title)
-
def somethingelse(self):
-
Dosomethingelse;
-
-
Where 'myFrame' is the name of your class.
And you inherit methods from 'wx.Frame'
So you can use the __init__ method from the 'wx.Frame' class
As previously mentioned, all you have to do is to create an instance of your class to use it inside another class for example
-
-
class newclass:
-
def __init__(self):
-
instance = myFrame(None,-1,"Just some parameters")
-
-
Does this answer your question?