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

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

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

revision 151 by bh, Tue May 7 17:01:35 2002 UTC revision 161 by bh, Wed May 8 13:47:10 2002 UTC
# Line 56  class SessionTreeCtrl(wxTreeCtrl): Line 56  class SessionTreeCtrl(wxTreeCtrl):
56          EVT_TREE_SEL_CHANGED(self, self.GetId(), self.OnSelChanged)          EVT_TREE_SEL_CHANGED(self, self.GetId(), self.OnSelChanged)
57    
58      def unsubscribe_all(self):      def unsubscribe_all(self):
         print "unsubscribe_all"  
59          if self.session is not None:          if self.session is not None:
60              for channel in self.session_channels:              for channel in self.session_channels:
61                  self.session.Unsubscribe(channel, self.update_tree)                  self.session.Unsubscribe(channel, self.update_tree)
62                self.session = None
63          self.app.Unsubscribe(SESSION_CHANGED, self.session_changed)          self.app.Unsubscribe(SESSION_CHANGED, self.session_changed)
64          self.app.interactor.Unsubscribe(SELECTED_LAYER, self.layer_selected)          self.app.interactor.Unsubscribe(SELECTED_LAYER, self.layer_selected)
65    

Legend:
Removed from v.151  
changed lines
  Added in v.161

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26