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.
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)