<div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default"><font face="arial, helvetica, sans-serif">See <a href="http://doc.qt.io/qt-5/qtest.html#qWait">http://doc.qt.io/qt-5/qtest.html#qWait</a>. Of course, a much better approach is to schedule an event using a timer. To quit an app after 1000 ms, you can use QTimer.singleShot(1000, app.quit), where app is your QApplication instance.</font></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Sep 21, 2018 at 1:23 PM Tong Zhang <<a href="mailto:warriorlance@gmail.com">warriorlance@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>
<div dir="ltr">
<div>Hello,</div>
<div><br>
</div>
<div>When I'm building applications by wxPython, there is a function wx.MilliSleep could be used to do non-GUI-block sleep, while I cannot find the similar thing in PyQt, is it available or not? Otherwise, what I can do to is to use QThread. Any comment is
 appreciated!</div>
<div><br>
</div>
<div>Tong<br>
</div>
</div>
</div>

</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Bryan A. Jones, Ph.D.<br>Associate Professor<br>Department of Electrical and Computer Engineering<br>231 Simrall / PO Box 9571<br>Mississippi State University<br>Mississippi State, MS 39762<br><a href="http://www.ece.msstate.edu/~bjones" target="_blank">http://www.ece.msstate.edu/~bjones</a><br>bjones AT ece DOT msstate DOT edu<br>voice 662-325-3149<br>fax 662-325-2298<br><br>Our Master, Jesus Christ, is on his way. He'll show up right on<br>time, his arrival guaranteed by the Blessed and Undisputed Ruler,<br>High King, High God.<br>- 1 Tim. 6:14b-15 (The Message)<br></div></div></div>