I've searched around online for the answer however I was not entirely clear on the content i was readying so i figured i would post it here.
I wanted to know if the way I'm creating a class inheriting from Baker is being done correctly.
Say I have a base class:
class Baker(QtCore.QObject):
changedProperty = QtCore.Signal()
def __init__(self, **kwargs):
QtCore.QObject.__init__(self)
...
Then I create classes based off of Baker like this:
class NormalBaker(Baker):
def __init__(self):
Baker.__init__(self, name='Normal Baker')
...
is this correct?
UPDATED
Is this snippet of code the proper way to subclass from Baker?
def __init__(self):
Baker.__init__(self, name='Normal Baker')