/[thuban]/trunk/thuban/Thuban/UI/about.py
ViewVC logotype

Annotation of /trunk/thuban/Thuban/UI/about.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1595 - (hide annotations)
Mon Aug 18 10:03:13 2003 UTC (21 years, 6 months ago) by jan
File MIME type: text/x-python
File size: 3404 byte(s)
(About.__init__): Added Silke Reimer.

1 jonathan 1305 # Copyright (c) 2001, 2002, 2003 by Intevation GmbH
2     # Authors:
3     # Jonathan Coles <[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 bh 1542 """The About Box"""
9    
10     __version__ = "$Revision$"
11     # $Source$
12     # $Id$
13    
14 jonathan 1305 from wxPython.wx import *
15    
16     from Thuban import _
17     from Thuban.version import versions
18    
19     class About(wxDialog):
20    
21     def __init__(self, parent):
22     wxDialog.__init__(self, parent, -1, _("About Thuban"),
23     style = wxDEFAULT_DIALOG_STYLE
24     | wxSYSTEM_MENU
25     | wxMINIMIZE_BOX
26     | wxMAXIMIZE_BOX
27     | wxRESIZE_BORDER,
28     size = (400, 250))
29    
30     text = _(#"Build Date: %s\n"
31     "%s\n\n"
32     "Currently using:\n"
33     "\t%s\n"
34     "\t%s\n"
35     "\t%s\n"
36     "\t%s\n"
37     "\t%s\n\n"
38     "Compiled against:\n"
39     "\t%s\n"
40     "\t%s\n\n"
41     "Lead Developer:\n"
42 jonathan 1323 "\tBernhard Herzog\n\n"
43 jonathan 1305 "Developers:\n"
44     "\tJonathan Coles\n"
45     "\tFrank Koormann\n"
46 jan 1568 "\tMartin Müller\n"
47 jonathan 1305 "\tJan-Oliver Wagner\n\n"
48 jan 1568 "Translators:\n"
49     "\tFrench: Daniel Calvelo Aros\n"
50 jan 1583 "\tGerman: Björn Broscheit\n"
51 jan 1568 "\tItalian: Maurizio Napolitano\n"
52     "\tRussian: Alex Shevlakov\n"
53     "\tSpanish: Daniel Calvelo Aros\n\n"
54     "Other Contributors:\n"
55 jonathan 1305 "\tJonathan Byron\n"
56 jan 1595 "\tSilke Reimer\n"
57 jan 1568 "\tBernhard Reiter\n\n"
58 jonathan 1323 "Questions and comments can be sent to the following addresses:\n"
59     "\tThuban developers:\n\t\t<[email protected]>\n"
60     "\tThuban mailing list:\n\t\t<[email protected]>"
61 jonathan 1305 % ("Thuban %s" % versions['thuban-long'],
62     "wxPython %s" % versions['wxPython'],
63     "Python %s" % versions['python'],
64     "PySQLite %s" % versions['pysqlite'],
65     "SQLite %s" % versions['sqlite'],
66 jonathan 1323 "GDAL %s" % versions.get('gdal', "- not available"),
67     "GTK %s" % versions.get('gtk', "- not available"),
68 jonathan 1305 "proj %s" % versions['proj']))
69    
70     self.text = text
71    
72     text_title = wxStaticText(self, -1,
73     "Thuban is a program for exploring geographic data.\n\n"
74     "Copyright 2001-2003 Intevation GmbH.\n"
75     "Thuban is licensed under the GNU GPL",
76     style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE)
77    
78     textBox = wxTextCtrl(self, -1, text,
79     style=wxTE_READONLY|wxTE_MULTILINE|wxTE_LINEWRAP)
80     w, h = (300, 150)
81     textBox.SetSizeHints(w, h)
82     textBox.SetSize((w, h))
83    
84     button_close = wxButton(self, wxID_CANCEL, _("Close"))
85     button_close.SetDefault()
86    
87     sizer = wxBoxSizer(wxVERTICAL)
88     sizer.Add(text_title, 0, wxALL|wxEXPAND|wxADJUST_MINSIZE, 10)
89     sizer.Add(textBox, 1, wxALL|wxEXPAND, 10)
90     sizer.Add(button_close, 0, wxALL|wxALIGN_RIGHT, 10)
91    
92     self.SetAutoLayout(True)
93     self.SetSizer(sizer)
94     sizer.Fit(self)
95     sizer.SetSizeHints(self)
96     self.Layout()
97    
98     EVT_BUTTON(self, wxID_CANCEL, self.OnCancel)
99    
100     def OnCancel(self, event):
101     self.EndModal(wxID_CANCEL)
102    
103    

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26