commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/forms/src/uidrivers/wx UIdriver.py


From: Jason Cater
Subject: gnue/forms/src/uidrivers/wx UIdriver.py
Date: Wed, 09 Oct 2002 11:03:13 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    02/10/09 11:03:13

Modified files:
        forms/src/uidrivers/wx: UIdriver.py 

Log message:
        applied Via Libre's MainLoop patch to allow multiple forms to be loaded

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/src/uidrivers/wx/UIdriver.py.diff?tr1=1.193&tr2=1.194&r1=text&r2=text

Patches:
Index: gnue/forms/src/uidrivers/wx/UIdriver.py
diff -c gnue/forms/src/uidrivers/wx/UIdriver.py:1.193 
gnue/forms/src/uidrivers/wx/UIdriver.py:1.194
*** gnue/forms/src/uidrivers/wx/UIdriver.py:1.193       Tue Oct  8 18:36:13 2002
--- gnue/forms/src/uidrivers/wx/UIdriver.py     Wed Oct  9 11:03:13 2002
***************
*** 99,110 ****
--- 99,123 ----
      __wxApp = GFwxApp(0)
    return __wxApp
  
+ 
  class GFwxApp(wxApp):
+   _mainLoop= None
+ 
    def OnInit(self):
      GDebug.printMesg(7,"WxApp initializing")
      wxInitAllImageHandlers()
      return true
  
+   def MainLoop (self):
+     # just to launch one wx's mainloop
+     # otherwise, the app does not finishes cleanly when several windows are 
open
+     # 'cause the first mainloop gets all the events
+     # and the others just sit and wait for something to happen
+     if self._mainLoop==None:
+       self._mainLoop= 1
+       wxApp.MainLoop (self)
+ 
+       
  #
  # Little global helper routine to set font according to options
  #




reply via email to

[Prev in Thread] Current Thread [Next in Thread]