75 |
return __wxApp |
return __wxApp |
76 |
|
|
77 |
class GFwxApp(wxApp): |
class GFwxApp(wxApp): |
78 |
|
_mainLoop= None |
79 |
|
|
80 |
def OnInit(self): |
def OnInit(self): |
81 |
GDebug.printMesg(7,"WxApp initializing") |
GDebug.printMesg(7,"WxApp initializing") |
82 |
wxInitAllImageHandlers() |
wxInitAllImageHandlers() |
83 |
return true |
return true |
84 |
|
|
85 |
|
def MainLoop (self): |
86 |
|
# just to launch one wx's mainloop |
87 |
|
# otherwise, the app does not finishes cleanly when several windows are open |
88 |
|
# 'cause the first mainloop gets all the events |
89 |
|
# and the others just sit and wait for something to happen |
90 |
|
if self._mainLoop==None: |
91 |
|
self._mainLoop= 1 |
92 |
|
wxApp.MainLoop (self) |
93 |
|
|
94 |
# |
# |
95 |
# Little global helper routine to set font according to options |
# Little global helper routine to set font according to options |