Author: reinhard
Date: 2006-08-08 16:38:49 -0500 (Tue, 08 Aug 2006)
New Revision: 8555

Modified:
   trunk/gnue-forms/src/uidrivers/wx26/UIdriver.py
Log:
Start main loop only once.


Modified: trunk/gnue-forms/src/uidrivers/wx26/UIdriver.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx26/UIdriver.py     2006-08-08 21:32:32 UTC 
(rev 8554)
+++ trunk/gnue-forms/src/uidrivers/wx26/UIdriver.py     2006-08-08 21:38:49 UTC 
(rev 8555)
@@ -191,7 +191,9 @@
     if self.__splash is not None:
       self.__splash.Close ()
 
-    self.app.MainLoop ()
+    # Main loop might already be running if this has been called with runForm()
+    if not self.app.IsMainLoopRunning():
+        self.app.MainLoop ()
 
     assert gLeave (6)
 



_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to