Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 56b9c94

Browse files
committed
reverted wxapp outside show
svn path=/trunk/matplotlib/; revision=1092
1 parent 0df6d2a commit 56b9c94

4 files changed

Lines changed: 15 additions & 5 deletions

File tree

CHANGELOG

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
New entries should be added at the top
2+
3+
2005-03-19 Reverted wxapp handling because it crashed win32 - JDH
4+
25
2005-03-18 Add .number attribute to figure objects returned by figure() - FP
36

7+
===========================================================================
8+
2005-03-18 0.73 released
9+
410
2005-03-16 Fixed labelsep bug
511

612
2005-03-16 Applied Darren's ticker fix for small ranges - JDH

MANIFEST

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ lib/matplotlib/mathtext.py
537537
lib/matplotlib/mlab.py
538538
lib/matplotlib/patches.py
539539
lib/matplotlib/pylab.py
540+
lib/matplotlib/pylab.py.~1.48.~
540541
lib/matplotlib/pyparsing.py
541542
lib/matplotlib/table.py
542543
lib/matplotlib/text.py

lib/matplotlib/backends/backend_wx.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@
113113
print >>sys.stderr, "Matplotlib backend_wx requires wxPython be installed"
114114
sys.exit()
115115

116-
# wxapp = wxPySimpleApp()
117-
# wxapp.SetExitOnFrameDelete(True)
116+
wxapp = wxPySimpleApp()
117+
wxapp.SetExitOnFrameDelete(True)
118118

119119

120120
#!!! this is the call that is causing the exception swallowing !!!
@@ -1156,8 +1156,8 @@ def show():
11561156
figwin.canvas.draw()
11571157

11581158
if show._needmain and not matplotlib.is_interactive():
1159-
wxapp = wx.PySimpleApp()
1160-
wxapp.SetExitOnFrameDelete(True)
1159+
#wxapp = wx.PySimpleApp()
1160+
#wxapp.SetExitOnFrameDelete(True)
11611161
wxapp.MainLoop()
11621162
show._needmain = False
11631163
show._needmain = True

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,11 @@ def add_dateutil():
163163
BUILD_GTK=0
164164
except RuntimeError:
165165
print 'pygtk present but import failed'
166-
build_gdk(ext_modules, packages, NUMERIX)
166+
167167

168+
if BUILD_GTK:
169+
build_gdk(ext_modules, packages, NUMERIX)
170+
168171
if BUILD_GTKAGG:
169172
try:
170173
import gtk

0 commit comments

Comments
 (0)