8 |
__version__ = "$Revision$" |
__version__ = "$Revision$" |
9 |
|
|
10 |
from Thuban import _ |
from Thuban import _ |
11 |
from Thuban.Model.scalebar import * |
from Thuban.Model.scalebar import deriveInterval, roundInterval |
12 |
|
|
13 |
from wxPython.wx import * |
from wxPython.wx import * |
14 |
|
|
66 |
dc.SetTextForeground(BlackText) |
dc.SetTextForeground(BlackText) |
67 |
dc.DrawText("%d"%0, 4 - l1width/2, 12) |
dc.DrawText("%d"%0, 4 - l1width/2, 12) |
68 |
|
|
69 |
l2width, l2height = dc.GetTextExtent("%d %s"%(label, unit)) |
l2width, l2height = dc.GetTextExtent("%s %s"%(label, unit)) |
70 |
dc.DrawText("%d %s"%(interval, unit), 2*width+4 - l2width/2, 12) |
dc.DrawText("%s %s"%(interval, unit), 2*width+4 - l2width/2, 12) |
71 |
|
|