I am trying to switch the 2nd window(this is dialog) from the 1st main window. (without open new window) But I got the error like:TypeError: addWidget(self, QWidget): argument 1