[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] wx.MilliSleep equivalent
From: Chris Pezley <chris () pezley ! net>
Date: 2018-09-22 6:02:32
Message-ID: 7f9ffc3d-8700-7254-ee27-739524f287c2 () pezley ! net
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi Tong,
maybe what you want is "QtWidgets.qApp.processEvents()"? (make sure to
look at the one with the optional argument for maxtime)
http://doc.qt.io/qt-5/qcoreapplication.html#processEvents-1
On 21/09/2018 20.22, Tong Zhang wrote:
> Hello,
>
> 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!
>
> Tong
>
>
> _______________________________________________
> PyQt mailing list PyQt@riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[Attachment #5 (text/html)]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Tong,<br>
<br>
maybe what you want is "QtWidgets.qApp.processEvents()"? (make
sure to look at the one with the optional argument for maxtime)<br>
<a class="moz-txt-link-freetext" \
href="http://doc.qt.io/qt-5/qcoreapplication.html#processEvents-1">http://doc.qt.io/qt-5/qcoreapplication.html#processEvents-1</a><br>
<br>
On 21/09/2018 20.22, Tong Zhang wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CABUYRu4aFG7VDw-HzaZLtVObf9i287e-pDjcwaLkynNEe2-bfA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
PyQt mailing list <a class="moz-txt-link-abbreviated" \
href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a> <a \
class="moz-txt-link-freetext" \
href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></pre>
</blockquote>
<p><br>
</p>
</body>
</html>
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic