Opening a QDialog and saving last state
问题 I am trying to open a QDialog from a QMainWindow , and after closing the `QDialog, if I need to open it again, it has to open and show the same information that had when I close it. Here is the code of the QMainWindow : class A (QMainWindow): def __init__(self): QMainWindow.__init__(self) #I create a QPushButton to open the QDialog self.axes1 = self.figure_canvas.figure.add_axes ([0.8, 0.01, 0.19, 0.05]) self.button = QPushButton(self.axes1,"Open Dialog") self.button.on_clicked(self