/[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 535 by bh, Fri Mar 14 20:42:18 2003 UTC revision 814 by jonathan, Mon May 5 15:04:42 2003 UTC
# Line 9  Line 9 
9    
10  __version__ = "$Revision$"  __version__ = "$Revision$"
11    
12  from wxPython.wx import wxFrame, EVT_CLOSE  #from wxPython.wx import wxFrame, EVT_CLOSE
13    
14  class NonModalDialog(wxFrame):  #class NonModalDialog(wxFrame):
15    
16        #def __init__(self, parent, name, title):
17            #wxFrame.__init__(self, parent, -1, title)
18            #self.parent = parent
19            #self.name = name
20            #EVT_CLOSE(self, self.OnClose)
21    #
22        #def OnClose(self, event):
23            #self.parent.remove_dialog(self.name)
24            #self.Destroy()
25    
26    from wxPython.wx import *
27    
28    class NonModalDialog(wxDialog):
29    
30      def __init__(self, parent, name, title):      def __init__(self, parent, name, title):
31          wxFrame.__init__(self, parent, -1, title)          wxDialog.__init__(self, parent, -1, title,
32                style = wxDEFAULT_DIALOG_STYLE
33                      | wxSYSTEM_MENU
34                      | wxMINIMIZE_BOX
35                      | wxMAXIMIZE_BOX
36                      | wxRESIZE_BORDER)
37          self.parent = parent          self.parent = parent
38          self.name = name          self.name = name
39          EVT_CLOSE(self, self.OnClose)          EVT_CLOSE(self, self.OnClose)

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26