From 07af7d07778a806b0f37ba2c2fb1249927e6e578 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 14 Aug 2010 04:08:04 -0400 Subject: [PATCH] Fix toolbar -> self._c['toolbar'] in gui.panel.plot on MS Windows. --- hooke/ui/gui/panel/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.26.2