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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28 - (hide annotations)
Thu Sep 6 13:29:57 2001 UTC (23 years, 6 months ago) by bh
Original Path: trunk/thuban/Thuban/UI/dialogs.py
File MIME type: text/x-python
File size: 671 byte(s)
New file implementing common classes for dialogs

1 bh 28 # 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()

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26