How does your application start?

unsuscribe

···

When there’s no call to the super class’ init method, a default call is made with no parameters (just ‘self’).

Something like the default constructor in java.
It has nothing to do with wxPython.

example:

class ClassA:
def init(self):
self.x = 1

class ClassB(ClassA):
def TestFunc(self):
print self.x

b = ClassB()
b.TestFunc()

output is: 1

There’s no error because ClassA’s init doesn’t take parameters.

if we would change ClassA to:

class ClassA:
def init(self, whatever):
self.x = 1

we will get TypeError: init() takes exactly 2 arguments (1 given)

Meaning python tried to call ClassA.init(self) automatically.

Thanks for the explanation.