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

Skip to content

Commit 9f1d839

Browse files
committed
fix call to set_status_bar() in FigureFrameWx: bug report from ajoj
svn path=/trunk/matplotlib/; revision=979
1 parent 4212b59 commit 9f1d839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_wx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1202,10 +1202,10 @@ def __init__(self, num, fig):
12021202
self.toolbar = NavigationToolbarWx(self.canvas, True)
12031203
elif matplotlib.rcParams['toolbar']=='toolbar2':
12041204
self.toolbar = NavigationToolbar2Wx(self.canvas)
1205+
self.toolbar.set_status_bar(statbar)
12051206
else:
12061207
self.toolbar = None
12071208

1208-
self.toolbar.set_status_bar(statbar)
12091209
if self.toolbar is not None:
12101210
self.toolbar.Realize()
12111211
if wxPlatform == '__WXMAC__':

0 commit comments

Comments
 (0)