<div dir="ltr" gmail_original="1">Thanks a lot for replying but I am currently working in Qt4 so should I follow the above procedure in Qt4 as well?<br><br><br><br><div id="mt-signature" contenteditable="false" g_editable="false">
        <table border="0" cellpadding="8" cellspacing="0" contenteditable="false" g_editable="false" data-signature-template="senderNotified" style="user-select: none;">
            <tbody><tr>
                <td>
                    <a id="signatureLink-logo" href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&" class="" style="text-decoration:none;" data-mt-detrack-inspected="true">
                        <img src="https://s3.amazonaws.com/mailtrack-signature/sender_notified.gif" alt="Mailtrack" class="" width="32" height="32" g_editable="false">
                    </a>
                </td>
                <td>
                    <span style="color:#777">Sender notified by</span> <br>
                    <a id="signatureLink-text" href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&" class="mt-install" style="color:#4374f7" data-mt-detrack-inspected="true">Mailtrack</a>
                    <span style="color: transparent; font-size: 0; user-select: none">06/10/21, 10:48:10 PM</span>
                </td>
                <td>
                    
                </td>
            </tr>
        </tbody></table>
    </div></div><br><img width="0" height="0" class="mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/90ddb9fa6a14866cfdb70bfcba5c5b44ac702d8f.png?u=7295268&w=cHlxdEByaXZlcmJhbmtjb21wdXRpbmcuY29t" ><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 10, 2021 at 10:47 PM Julio César Gázquez <julio@mebamutual.com> wrote:<br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
  
    
  
  <div>
    El 10/6/21 a las 14:12, Sahej singh escribió:<br>
    <blockquote type="cite">
      
      <div dir="ltr">Respected sir,
        <div>Can you please help me to rectify the following error,</div>
        <div>line 40, in close_application<br>
              choice = QtGui.QMessageBox.question(<wbr>self, 'Extract!' ,"Get
          into the chopper?",QtGui.QMessageBox.<wbr>Yes | <a href="http://QtGui.MessageBox.No" target="_blank">QtGui.MessageBox.No</a>)<br>
          AttributeError: 'module' object has no attribute 'MessageBox'<br>
          <br>
        </div>
        <img alt="" style="display: flex;" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" width="0" height="0"></div>
    </blockquote>
    <p>Hi.<br>
    </p>
    <p>In Qt5, QMessageBox (and all the QWidget related classes) were
      moved to QtWidgets.</p>
    <p>So you must replace QtGui.QMessageBox with QtWidgets.QMessageBox.</p>
    <p>Best regards.<br>
    </p>
  </div>

</blockquote></div>