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

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

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

revision 854 by frank, Wed May 7 18:24:13 2003 UTC revision 858 by frank, Thu May 8 10:30:17 2003 UTC
# Line 472  class ScaleBarBitmap(wxBoxSizer): Line 472  class ScaleBarBitmap(wxBoxSizer):
472          self.mainWindow = mainWindow          self.mainWindow = mainWindow
473          self.parent = parent          self.parent = parent
474          self.canvas = None          self.canvas = None
         self.scalebar = ScaleBar(map)  
475          self.SetCanvas(self.mainWindow.canvas)          self.SetCanvas(self.mainWindow.canvas)
476    
477      def SetCanvas(self, canvas):      def SetCanvas(self, canvas):
# Line 482  class ScaleBarBitmap(wxBoxSizer): Line 481  class ScaleBarBitmap(wxBoxSizer):
481              for msg, func in sub_list: self.canvas.Unsubscribe(msg, func)              for msg, func in sub_list: self.canvas.Unsubscribe(msg, func)
482                    
483          self.canvas = canvas          self.canvas = canvas
484            self.scalebar = ScaleBar(canvas.map)
485    
486          if self.canvas is not None:          if self.canvas is not None:
487              for msg, func in sub_list: self.canvas.Subscribe(msg, func)              for msg, func in sub_list: self.canvas.Subscribe(msg, func)

Legend:
Removed from v.854  
changed lines
  Added in v.858

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26