max_width = 0
for line in text_list:
- current_width, char_height = dc.GetTextExtent(line)
+ current_width, char_height = dc.GetTextExtent(line.GetText())
if current_width > max_width:
max_width = current_width
elif abs(float(dy) / dx) > 1:
point2[0] = point1[0]
else:
- point2[1] = point1[0]
+ point2[1] = point1[1]
E = (A + B)
F = (C - (2 * A * x1) - (2 * B * x2))
G = ((A * x1 * x1) + (B * x2 * x2) - (C * x2) + D - 1)
- H = (float(y3 - y2) / (x2 - x2))
+ H = (float(y3 - y2) / (x3 - x2))
K = ((F * F) - (4 * E * G))
if K >= 0: