def _create_wx_app():
 wxapp = wx.GetApp()
 if (wxapp is None):
  wxapp = wx.PySimpleApp()
  wxapp.SetExitOnFrameDelete(True)
  _create_wx_app.theWxApp = wxapp

def _create_wx_app ( ) : wxapp = wx . GetApp ( ) if ( wxapp is None ) : wxapp = wx . PySimpleApp ( ) wxapp . SetExitOnFrameDelete ( True ) _create_wx_app . theWxApp = wxapp
creates a wx .