Selaa lähdekoodia

g.gui.animation: launch GUI in the background

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57371 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 vuotta sitten
vanhempi
commit
68a4979370
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 5 2
      gui/wxpython/animation/g.gui.animation.py

+ 5 - 2
gui/wxpython/animation/g.gui.animation.py

@@ -114,5 +114,8 @@ def main():
     app.MainLoop()
     app.MainLoop()
 
 
 if __name__ == '__main__':
 if __name__ == '__main__':
-    main()
-
+    # launch GUI in the background
+    child_pid = os.fork()
+    if child_pid == 0:
+        main()
+    os._exit(0)