/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/view.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/view.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2734 by bramz, Thu Mar 1 12:42:59 2007 UTC revision 2755 by dpinte, Thu Apr 12 09:21:58 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.decode('iso-8859-1'))          return dc.GetTextExtent(text)
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.

Legend:
Removed from v.2734  
changed lines
  Added in v.2755

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26