[PyQt] wx.MilliSleep equivalent
Barry Scott
barry at barrys-emacs.org
Tue Oct 2 20:30:16 BST 2018
> On 21 Sep 2018, at 19:22, Tong Zhang <warriorlance at gmail.com> 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!
If you want a blocking sleep just do this:
import time
time.sleep( 0.001 ) # sleep 1ms
Barry
More information about the PyQt
mailing list