From: W. Trevor King Date: Sat, 14 Aug 2010 08:08:04 +0000 (-0400) Subject: Fix toolbar -> self._c['toolbar'] in gui.panel.plot on MS Windows. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=07af7d07778a806b0f37ba2c2fb1249927e6e578;p=hooke.git Fix toolbar -> self._c['toolbar'] in gui.panel.plot on MS Windows. --- diff --git a/hooke/ui/gui/panel/plot.py b/hooke/ui/gui/panel/plot.py index 602ee65..f918080 100644 --- a/hooke/ui/gui/panel/plot.py +++ b/hooke/ui/gui/panel/plot.py @@ -156,7 +156,7 @@ class PlotPanel (Panel, wx.Panel): elif wx.Platform == '__WXMSW__': # On Windows platform, default window size is incorrect, so set # toolbar width to figure width. - tw, th = toolbar.GetSizeTuple() + tw, th = self._c['toolbar'].GetSizeTuple() fw, fh = self._c['canvas'].GetSizeTuple() # By adding toolbar in sizer, we are able to put it at the bottom # of the frame - so appearance is closer to GTK version.