def addwindow(self, param): win = QtGui.MainWindow( param) # How to call the initializer of the subclass from here? self.windowList.append(win)