8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d28b4f commit 9a0c184Copy full SHA for 9a0c184
lib/matplotlib/backends/backend_wx.py
@@ -113,8 +113,8 @@
113
print >>sys.stderr, "Matplotlib backend_wx requires wxPython be installed"
114
sys.exit()
115
116
-wxapp = wxPySimpleApp()
117
-wxapp.SetExitOnFrameDelete(True)
+# wxapp = wxPySimpleApp()
+# wxapp.SetExitOnFrameDelete(True)
118
119
120
#!!! this is the call that is causing the exception swallowing !!!
@@ -1156,6 +1156,8 @@ def show():
1156
figwin.canvas.draw()
1157
1158
if show._needmain and not matplotlib.is_interactive():
1159
+ wxapp = wx.PySimpleApp()
1160
+ wxapp.SetExitOnFrameDelete(True)
1161
wxapp.MainLoop()
1162
show._needmain = False
1163
show._needmain = True
0 commit comments