Modified uiget_file to create the wx.App object.