/[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 534 by jonathan, Mon Mar 10 15:11:39 2003 UTC revision 535 by bh, Fri Mar 14 20:42:18 2003 UTC
# Line 1  Line 1 
1  # Copyright (c) 2001 by Intevation GmbH  # Copyright (c) 2001, 2003 by Intevation GmbH
2  # Authors:  # Authors:
3  # Bernhard Herzog <[email protected]>  # Bernhard Herzog <[email protected]>
4  #  #
# Line 13  from wxPython.wx import wxFrame, EVT_CLO Line 13  from wxPython.wx import wxFrame, EVT_CLO
13    
14  class NonModalDialog(wxFrame):  class NonModalDialog(wxFrame):
15    
16      def __init__(self, parent, interactor, name, title):      def __init__(self, parent, name, title):
17          wxFrame.__init__(self, parent, -1, title)          wxFrame.__init__(self, parent, -1, title)
18          self.parent = parent          self.parent = parent
         self.interactor = interactor  
19          self.name = name          self.name = name
20          EVT_CLOSE(self, self.OnClose)          EVT_CLOSE(self, self.OnClose)
21    
22      def OnClose(self, event):      def OnClose(self, event):
23          self.parent.remove_dialog(self.name)          self.parent.remove_dialog(self.name)
24          self.Destroy()          self.Destroy()
           

Legend:
Removed from v.534  
changed lines
  Added in v.535

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26