Create a new wx app or return an exiting one.
(*args, **kwargs)
| 67 | #----------------------------------------------------------------------------- |
| 68 | |
| 69 | def get_app_wx(*args, **kwargs): |
| 70 | """Create a new wx app or return an exiting one.""" |
| 71 | import wx |
| 72 | app = wx.GetApp() |
| 73 | if app is None: |
| 74 | if 'redirect' not in kwargs: |
| 75 | kwargs['redirect'] = False |
| 76 | app = wx.PySimpleApp(*args, **kwargs) |
| 77 | return app |
| 78 | |
| 79 | def is_event_loop_running_wx(app=None): |
| 80 | """Is the wx event loop running.""" |
no outgoing calls
no test coverage detected