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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 501 - (show annotations)
Mon Mar 10 15:11:39 2003 UTC (22 years ago) by jonathan
Original Path: trunk/thuban/Thuban/UI/dialogs.py
File MIME type: text/x-python
File size: 680 byte(s)
Don't need Shutdown(); just use Close()!

1 # Copyright (c) 2001 by Intevation GmbH
2 # Authors:
3 # Bernhard Herzog <[email protected]>
4 #
5 # This program is free software under the GPL (>=v2)
6 # Read the file COPYING coming with Thuban for details.
7
8 """Base classes for dialogs"""
9
10 __version__ = "$Revision$"
11
12 from wxPython.wx import wxFrame, EVT_CLOSE
13
14 class NonModalDialog(wxFrame):
15
16 def __init__(self, parent, interactor, name, title):
17 wxFrame.__init__(self, parent, -1, title)
18 self.parent = parent
19 self.interactor = interactor
20 self.name = name
21 EVT_CLOSE(self, self.OnClose)
22
23 def OnClose(self, event):
24 self.parent.remove_dialog(self.name)
25 self.Destroy()
26

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26