Initial work transitioning to wxWidgets 2.9.
[hooke.git] / hooke / ui / gui / panel / plot.py
index dc09084090cc7a2d2ce7007041387b3a02448b4b..dbf7cd8d2c40789cebfab98eb48ba75a0fe8fc7f 100644 (file)
@@ -117,7 +117,7 @@ class PlotPanel (Panel, wx.Panel):
         self._c['canvas'] = FigureCanvas(
             parent=self, id=wx.ID_ANY, figure=self._c['figure'])
 
-        self._set_color(wx.NamedColor('WHITE'))
+        self._set_color(wx.NamedColour('WHITE'))
         sizer = wx.BoxSizer(wx.VERTICAL)
         sizer.Add(self._c['canvas'], 1, wx.LEFT | wx.TOP | wx.GROW)
         self._setup_toolbar(sizer=sizer)  # comment out to remove plot toolbar.
@@ -215,7 +215,7 @@ class PlotPanel (Panel, wx.Panel):
 
     def _on_mouse_move(self, event):
         if 'toolbar' in self._c:
-            if event.guiEvent.m_shiftDown:
+            if event.guiEvent.shiftDown:
                 self._c['toolbar'].set_cursor(wx.CURSOR_RIGHT_ARROW)
             else:
                 self._c['toolbar'].set_cursor(wx.CURSOR_ARROW)