Skip to content

Commit

Permalink
Merge pull request #2316 from vbr/patch-6
Browse files Browse the repository at this point in the history
Replace the obsolete wx.PySimpleApp
  • Loading branch information
efiring committed Aug 19, 2013
2 parents bf96102 + 0a160ad commit c001797
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/matplotlib/backends/backend_wx.py
Expand Up @@ -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
Expand Down

0 comments on commit c001797

Please sign in to comment.