Fix toolbar -> self._c['toolbar'] in gui.panel.plot on MS Windows.
authorW. Trevor King <wking@drexel.edu>
Sat, 14 Aug 2010 08:08:04 +0000 (04:08 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 14 Aug 2010 08:08:04 +0000 (04:08 -0400)
hooke/ui/gui/panel/plot.py

index 602ee650024f5c3c6b5820c941e6a75dc385e4d9..f9180803fe0ddb002c83e7ef2ee7f82a6a67860a 100644 (file)
@@ -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.