removed apparently unnecessary loop
This commit is contained in:
parent
1f8eee4119
commit
39f4f85b11
|
@ -2940,16 +2940,12 @@ class UISignaler(Thread,QThread):
|
||||||
try:
|
try:
|
||||||
import gevent
|
import gevent
|
||||||
except ImportError as ex:
|
except ImportError as ex:
|
||||||
print "cannot find gevent"
|
|
||||||
gevent = None
|
gevent = None
|
||||||
else:
|
else:
|
||||||
def mainloop(app):
|
def mainloop(app):
|
||||||
while True:
|
while True:
|
||||||
app.processEvents()
|
app.processEvents()
|
||||||
while app.hasPendingEvents():
|
gevent.sleep(0.01)
|
||||||
app.processEvents()
|
|
||||||
gevent.sleep(0.01)
|
|
||||||
gevent.sleep(0.01) # don't appear to get here but cooperate again
|
|
||||||
def testprint():
|
def testprint():
|
||||||
#print 'this is running'
|
#print 'this is running'
|
||||||
gevent.spawn_later(1, testprint)
|
gevent.spawn_later(1, testprint)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user