Initial work transitioning to wxWidgets 2.9.
authorW. Trevor King <wking@drexel.edu>
Fri, 11 Nov 2011 04:17:00 +0000 (23:17 -0500)
committerW. Trevor King <wking@drexel.edu>
Fri, 11 Nov 2011 04:17:00 +0000 (23:17 -0500)
m_shiftDown -> shiftDown in wxWidgets 2.9.0.1 [1]
NamedColor alias for NamedColour removed in in wxWidgets [version?] [2]

[1]: http://www.wxpython.org/recentchanges.php
[2]: http://svn.wxwidgets.org/viewvc/wx/wxPython/trunk/src/gtk/_gdi.py?r1=52881&r2=53838&pathrev=53838

hooke/ui/gui/__init__.py
hooke/ui/gui/panel/plot.py

index fc41717..809b30c 100644 (file)
@@ -20,7 +20,7 @@
 
 """
 
-WX_GOOD=['2.8']
+WX_GOOD=['2.9', '2.8']
 
 import wxversion
 wxversion.select(WX_GOOD)
index dc09084..dbf7cd8 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)