A MessageBox in PyQt will not acces the parent window... I tried implementing the custom messageBox. But nothing worked for me.
I tried with QWidget but with Qwidget the widgets are placing on the mainWindow itself like below image
Then I implemented the dialog box and it worked fine but the issue is we can also access the main window when the dialog box is opened. I want it be like mainWindow can't be accessed when dialog box is opened.
class MainClass(QtGui.QDialog):
def __init__(self, parent=None):
super(MainClass, self).__init__(parent)
self.setParent(parent)
#widgets added below
...
Can anyone help with this?