Very newbie question how to __init__ classes the right way

  • Hi!
    I'm still learning GUI Programming with Python and I found that different authors suggest different ways to initialize classes.

    For instance, Venkateshwaran Loganathan in his book "PySide GUI Application Development" always suggests the following form:

    @class SomeDialog(QDialog):
    def init(self):

    while Bogdan Milanowich in his "video tutorials":, suggests the following:

    @class SomeOtherDialog(QDialog):
    def init(self, parent=None)
    super(SomeOtherDialog, self).init(parent)

    What are the differences?
    Which is the best way?


    P.S. Sorry for bringing down the quality of discussions here ;-) with my questions

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.