diff --git a/lib/matplotlib/backends/backend_wx.py b/lib/matplotlib/backends/backend_wx.py index 23f89bb4442b..1352f4260625 100644 --- a/lib/matplotlib/backends/backend_wx.py +++ b/lib/matplotlib/backends/backend_wx.py @@ -1240,11 +1240,11 @@ def _onEnter(self, evt): def _create_wx_app(): """ - Creates a wx.PySimpleApp instance if a wx.App has not been created. + Creates a wx.App instance if it has not been created sofar. """ wxapp = wx.GetApp() if wxapp is None: - wxapp = wx.PySimpleApp() + wxapp = wx.App(False) wxapp.SetExitOnFrameDelete(True) # retain a reference to the app object so it does not get garbage # collected and cause segmentation faults