def get_app_wx(*args, **kwargs):
import wx<EOL>app = wx.GetApp()<EOL>if app is None:<EOL><INDENT>if not kwargs.has_key('<STR_LIT>'):<EOL><INDENT>kwargs['<STR_LIT>'] = False<EOL><DEDENT>app = wx.PySimpleApp(*args, **kwargs)<EOL><DEDENT>return app<EOL>
Create a new wx app or return an exiting one.