583 |
x, y = forward(x, y) |
x, y = forward(x, y) |
584 |
x = int(round(x * scale + offx)) |
x = int(round(x * scale + offx)) |
585 |
y = int(round(-y * scale + offy)) |
y = int(round(-y * scale + offy)) |
586 |
width, height = self.dc.GetTextExtent(text) |
width, height = self.dc.GetTextExtent(text.decode('iso-8859-1')) |
587 |
if label.halign == ALIGN_LEFT: |
if label.halign == ALIGN_LEFT: |
588 |
# nothing to be done |
# nothing to be done |
589 |
pass |
pass |
598 |
y = y - height |
y = y - height |
599 |
elif label.valign == ALIGN_CENTER: |
elif label.valign == ALIGN_CENTER: |
600 |
y = y - height/2 |
y = y - height/2 |
601 |
self.dc.DrawText(text, x, y) |
self.dc.DrawText(text.decode('iso-8859-1'), x, y) |