Related to QMessageBox

Kyle Altendorf sda at
Thu Jun 10 18:19:50 BST 2021

On 2021-06-10 13:12, Sahej singh wrote:

> Respected sir,
> Can you please help me to rectify the following error,
> line 40, in close_application
> choice = QtGui.QMessageBox.question(self, 'Extract!' ,"Get into the 
> chopper?",QtGui.QMessageBox.Yes | QtGui.MessageBox.No)
> AttributeError: 'module' object has no attribute 'MessageBox'

I think you mean `QtGui.QMessageBox.No` at the end.  Note the `Q` I 
added compared to yours.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: blocked.gif
Type: image/gif
Size: 118 bytes
Desc: not available
URL: <>

More information about the PyQt mailing list