]> git.saurik.com Git - wxWidgets.git/commitdiff
OGL fixes from Davide Salomoni
authorRobin Dunn <robin@alldunn.com>
Wed, 30 Mar 2005 21:24:51 +0000 (21:24 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 30 Mar 2005 21:24:51 +0000 (21:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/ogl/_basic.py
wxPython/wx/lib/ogl/_lines.py

index 9a999093d33d4116b145360e6e4a1d0103f55533..69028630a8a35fcb873530ee5b8410c794954993 100644 (file)
@@ -395,6 +395,10 @@ class Shape(ShapeEvtHandler):
         else:
             self._shadowMode = mode
 
+    def GetShadowMode(self):
+        """Return the current shadow mode setting"""
+        return self._shadowMode
+
     def SetCanvas(self, theCanvas):
         """Identical to Shape.Attach."""
         self._canvas = theCanvas
@@ -644,7 +648,7 @@ class Shape(ShapeEvtHandler):
         """Get the colour for the specified text region."""
         if regionId >= len(self._regions):
             return ""
-        return self._regions[regionId].GetTextColour()
+        return self._regions[regionId].GetColour()
 
     def SetRegionName(self, name, regionId = 0):
         """Set the name for this region.
index 819fa6704d6f854657b61a12cf2e2f6ed9fd632d..ea4b9ea959371ee703280e26777222e75ea0f6d9 100644 (file)
@@ -1375,7 +1375,7 @@ class LineShape(Shape):
         """
         for arrow in self._arcArrows:
             if (position == -1 or position == arrow.GetArrowEnd()) and arrow.GetName() == name:
-                return arow
+                return arrow
 
         return None