Parent Directory
|
Revision Log
|
Patch
revision 2717 by dpinte, Tue Oct 3 09:34:51 2006 UTC | revision 2718 by dpinte, Fri Jan 5 23:43:49 2007 UTC | |
---|---|---|
# | Line 425 class MapCanvas(wx.Window, ViewPort): | Line 425 class MapCanvas(wx.Window, ViewPort): |
425 | dc = wx.ClientDC(self) | dc = wx.ClientDC(self) |
426 | font = wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL) | font = wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL) |
427 | dc.SetFont(font) | dc.SetFont(font) |
428 | return dc.GetTextExtent(text) | return dc.GetTextExtent(text.decode('iso-8859-1')) |
429 | ||
430 | def LabelShapeAt(self, x, y, text=None): | def LabelShapeAt(self, x, y, text=None): |
431 | """Add or remove a label at window position x, y. | """Add or remove a label at window position x, y. |
|
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |