mirror of
https://github.com/tenox7/wrp.git
synced 2025-04-07 15:40:45 +00:00
Use QApplication.exit(0) when wrp.stop.
This commit is contained in:
parent
3d5d56c5f7
commit
b4b730b652
4
wrp.py
4
wrp.py
@ -357,7 +357,7 @@ if sys.platform == "linux" or sys.platform == "linux2":
|
||||
WebkitRenderer.req_map = req[3]
|
||||
if rurl == "http://wrp.stop/":
|
||||
print ">>> Terminate Request Received"
|
||||
sys.exit(0)
|
||||
QApplication.exit(0)
|
||||
break
|
||||
|
||||
# Initialize WebkitRenderer object
|
||||
@ -682,6 +682,8 @@ def main():
|
||||
app = init_qtgui(display=None, style=None)
|
||||
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
||||
|
||||
print QImageWriter.supportedImageFormats()
|
||||
|
||||
PyQt4.QtCore.QTimer.singleShot(0, __main_qt)
|
||||
sys.exit(app.exec_())
|
||||
elif sys.platform == "darwin":
|
||||
|
Loading…
x
Reference in New Issue
Block a user