X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2f6eb0606be607c176121ad4ae272e3112f44eb..33b7017158309d0ffba37843f99bd7e53265dbc0:/wxPython/wx/lib/ogl/_lines.py diff --git a/wxPython/wx/lib/ogl/_lines.py b/wxPython/wx/lib/ogl/_lines.py index 32ebb9c6c8..65978c484f 100644 --- a/wxPython/wx/lib/ogl/_lines.py +++ b/wxPython/wx/lib/ogl/_lines.py @@ -668,7 +668,7 @@ class LineShape(Shape): d=-arrow.GetYOffset() # Negate so +offset is above line if x3 == x1: - theta = pi / 2 + theta = math.pi / 2 else: theta = math.atan((y3-y1) / (x3-x1)) @@ -744,15 +744,15 @@ class LineShape(Shape): if x1 == x2 and y1 == y2: theta = 0.0 elif x1 == x2 and y1>y2: - theta = 3.0 * pi / 2 + theta = 3.0 * math.pi / 2 elif x1 == x2 and y2>y1: - theta = pi / 2 + theta = math.pi / 2 elif x2>x1 and y2 >= y1: theta = math.atan((y2-y1) / (x2-x1)) elif x2x1 and y2