Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c001797

Browse filesBrowse files
committed
Merge pull request #2316 from vbr/patch-6
Replace the obsolete wx.PySimpleApp
2 parents bf96102 + 0a160ad commit c001797
Copy full SHA for c001797

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎lib/matplotlib/backends/backend_wx.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_wx.py
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.