0

I've started to learn Python (v3) and PyQt5 and noticed that some coding has the following:

class MainWindow(QMainWindow):
    def __init__(self, widget):
        QMainWindow.__init__(self)

What does QMainWindow.__init__(self) this mean?

Some tutorials shows the below instead:

class MainWindow(QMainWindow):
    def __init__(self, widget):
        super().__init__()

Is QMainWindow.__init__(self) the same with super().__init__() ?

SunSpark
  • 1
  • 1
  • see https://stackoverflow.com/questions/222877/what-does-super-do-in-python-difference-between-super-init-and-expl – balderman Aug 16 '21 at 14:06

0 Answers0