/[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 443 by jonathan, Thu Feb 27 15:55:42 2003 UTC revision 488 by jonathan, Fri Mar 7 18:21:25 2003 UTC
# Line 212  class SessionTreeView(NonModalDialog): Line 212  class SessionTreeView(NonModalDialog):
212                                  _("Session"))                                  _("Session"))
213          self.tree = SessionTreeCtrl(self, -1, app)          self.tree = SessionTreeCtrl(self, -1, app)
214    
215      def OnClose(self, event):      def Shutdown(self):
         #self.interactor.Unsubscribe(SELECTED_SHAPE, self.select_shape)  
         NonModalDialog.OnClose(self, event)  
   
216          # if there were a way to get notified when the tree control          # if there were a way to get notified when the tree control
217          # itself is destroyed we could use that to unsubscribe instead          # itself is destroyed we could use that to unsubscribe instead
218          # of doing it here. (EVT_WINDOW_DESTROY doesn't seem to sent at          # of doing it here. (EVT_WINDOW_DESTROY doesn't seem to sent at
219          # all)          # all)
220          self.tree.unsubscribe_all()          self.tree.unsubscribe_all()
221    
222            # this needs to come last because Destroy will be called
223            NonModalDialog.Shutdown(self)
224    

Legend:
Removed from v.443  
changed lines
  Added in v.488

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26