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

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

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

revision 1198 by jonathan, Fri Jun 13 15:03:32 2003 UTC revision 1891 by bh, Thu Oct 30 18:16:39 2003 UTC
# Line 20  class ThubanFrame(wxFrame): Line 20  class ThubanFrame(wxFrame):
20          self.parent = parent          self.parent = parent
21          self.name = name          self.name = name
22          EVT_CLOSE(self, self.OnClose)          EVT_CLOSE(self, self.OnClose)
23            EVT_WINDOW_DESTROY(self, self.OnDestroy)
24    
25      def OnClose(self, event):      def OnClose(self, event):
26            # FIXME: Shouldn't this really be in OnDestroy?
27          if self.parent.dialogs.has_key(self.name):          if self.parent.dialogs.has_key(self.name):
28              self.parent.remove_dialog(self.name)              self.parent.remove_dialog(self.name)
29          self.Destroy()          self.Destroy()
30    
31        def OnDestroy(self, event):
32            """Implement in derived classes for resource cleanup, etc."""
33    
34    
35  class NonModalDialog(wxDialog):  class NonModalDialog(wxDialog):
36      def __init__(self, parent, name, title):      def __init__(self, parent, name, title):
37          wxDialog.__init__(self, parent, -1, title,          wxDialog.__init__(self, parent, -1, title,

Legend:
Removed from v.1198  
changed lines
  Added in v.1891

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26