X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a2df8090e8f9f53ce5211f7037c632f792fed9be..31aa94e3ae3fc7a7547e41c99fe6ec760519d09d:/wxPython/wx/lib/ogl/_basic.py diff --git a/wxPython/wx/lib/ogl/_basic.py b/wxPython/wx/lib/ogl/_basic.py index e0d5c7307f..a8abcd5f54 100644 --- a/wxPython/wx/lib/ogl/_basic.py +++ b/wxPython/wx/lib/ogl/_basic.py @@ -521,7 +521,7 @@ class Shape(ShapeEvtHandler): # Don't try to resize an object with more than one image (this # case should be dealt with by overriden handlers) if (region.GetFormatMode() & FORMAT_SIZE_TO_CONTENTS) and \ - region.GetFormattedText().GetCount() and \ + len(region.GetFormattedText()) and \ len(self._regions) == 1 and \ not Shape.GraphicsInSizeToContents: @@ -2881,7 +2881,7 @@ class EllipseShape(Shape): y = top # We now have the point on the bounding box: but get the point # on the ellipse by imagining a vertical line from - # (x, self._ypos - self_height - 500) to (x, self._ypos) intersecting + # (x, self._ypos - self._height - 500) to (x, self._ypos) intersecting # the ellipse. return DrawArcToEllipse(self._xpos, self._ypos, self._width, self._height, x, self._ypos - self._height - 500, x, self._ypos)