So, I have two QDialogs in 2 different classes, in one Qdialog I have a QTableWidget with some data from a MYSQL db, I want to close and re-open it when I close the second Qdialog, so this is what I tried but doesn't work:
class firstDialog(QtWidgets.QDialog):
*all my code*
class secondDialog(QtWidgets.QDialog):
def firstdial(self):
self.firstdial= firstDialog()
self.firstdial.show()
def closeandopen(self)
self.accept()
firstDialog.accept()
self.firstdial()