8000 Merge pull request #2316 from vbr/patch-6 · matplotlib/matplotlib@f237a74 · GitHub
[go: up one dir, main page]

Skip to content

Commit f237a74

Browse files
efiringmdboom
authored andcommitted
Merge pull request #2316 from vbr/patch-6
Replace the obsolete wx.PySimpleApp
1 parent 388f8fd commit f237a74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backends/backend_wx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,11 +1240,11 @@ def _onEnter(self, evt):
12401240

12411241
def _create_wx_app():
12421242
"""
1243-
Creates a wx.PySimpleApp instance if a wx.App has not been created.
1243+
Creates a wx.App instance if it has not been created sofar.
12441244
"""
12451245
wxapp = wx.GetApp()
12461246
if wxapp is None:
1247-
wxapp = wx.PySimpleApp()
1247+
wxapp = wx.App(False)
12481248
wxapp.SetExitOnFrameDelete(True)
12491249
# retain a reference to the app object so it does not get garbage
12501250
# collected and cause segmentation faults

0 commit comments

Comments
 (0)
0