]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/ogl/_divided.py
frame should call skip on child focus event to give owner a chance
[wxWidgets.git] / wxPython / wx / lib / ogl / _divided.py
index 7ea907d9abc84c801e324ee2f520e84abae6a6c6..40f2e5979c315deab0943631d2a1198cd33619f0 100644 (file)
@@ -260,12 +260,12 @@ class DividedShape(RectangleShape):
                 if line and line.GetAlignmentType(isEnd) == LINE_ALIGNMENT_TO_NEXT_HANDLE:
                     # Align line according to the next handle along
                     point = line.GetNextControlPoint(self)
-                    if point.x < left:
+                    if point[0] < left:
                         x = left
-                    elif point.x > right:
+                    elif point[0] > right:
                         x = right
                     else:
-                        x = point.x
+                        x = point[0]
                 else:
                     x = left + (nth + 1) * self._width / (no_arcs + 1.0)
             else:
@@ -276,12 +276,12 @@ class DividedShape(RectangleShape):
                 if line and line.GetAlignmentType(isEnd) == LINE_ALIGNMENT_TO_NEXT_HANDLE:
                     # Align line according to the next handle along
                     point = line.GetNextControlPoint(self)
-                    if point.x < left:
+                    if point[0] < left:
                         x = left
-                    elif point.x > right:
+                    elif point[0] > right:
                         x = right
                     else:
-                        x = point.x
+                        x = point[0]
                 else:
                     x = left + (nth + 1) * self._width / (no_arcs + 1.0)
             else:
@@ -310,12 +310,12 @@ class DividedShape(RectangleShape):
                     if line and line.GetAlignmentType(isEnd) == LINE_ALIGNMENT_TO_NEXT_HANDLE:
                         # Align line according to the next handle along
                         point = line.GetNextControlPoint(self)
-                        if point.y < bottom:
+                        if point[1] < bottom:
                             y = bottom
-                        elif point.y > top:
+                        elif point[1] > top:
                             y = top
                         else:
-                            y = point.y
+                            y = point[1]
                     else:
                         y = top + (nth + 1) * region._height / (no_arcs + 1.0)
                 else: