/[thuban]/branches/thuban-1-0-branch/thuban/Thuban/UI/about.py
ViewVC logotype

Annotation of /branches/thuban-1-0-branch/thuban/Thuban/UI/about.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1583 - (hide annotations)
Tue Aug 12 16:13:41 2003 UTC (21 years, 6 months ago) by jan
Original Path: trunk/thuban/Thuban/UI/about.py
File MIME type: text/x-python
File size: 3373 byte(s)
(About.__init__): Added Björn Broscheit.

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 1568 "\tBernhard Reiter\n\n"
57 jonathan 1323 "Questions and comments can be sent to the following addresses:\n"
58     "\tThuban developers:\n\t\t<[email protected]>\n"
59     "\tThuban mailing list:\n\t\t<[email protected]>"
60 jonathan 1305 % ("Thuban %s" % versions['thuban-long'],
61     "wxPython %s" % versions['wxPython'],
62     "Python %s" % versions['python'],
63     "PySQLite %s" % versions['pysqlite'],
64     "SQLite %s" % versions['sqlite'],
65 jonathan 1323 "GDAL %s" % versions.get('gdal', "- not available"),
66     "GTK %s" % versions.get('gtk', "- not available"),
67 jonathan 1305 "proj %s" % versions['proj']))
68    
69     self.text = text
70    
71     text_title = wxStaticText(self, -1,
72     "Thuban is a program for exploring geographic data.\n\n"
73     "Copyright 2001-2003 Intevation GmbH.\n"
74     "Thuban is licensed under the GNU GPL",
75     style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE)
76    
77     textBox = wxTextCtrl(self, -1, text,
78     style=wxTE_READONLY|wxTE_MULTILINE|wxTE_LINEWRAP)
79     w, h = (300, 150)
80     textBox.SetSizeHints(w, h)
81     textBox.SetSize((w, h))
82    
83     button_close = wxButton(self, wxID_CANCEL, _("Close"))
84     button_close.SetDefault()
85    
86     sizer = wxBoxSizer(wxVERTICAL)
87     sizer.Add(text_title, 0, wxALL|wxEXPAND|wxADJUST_MINSIZE, 10)
88     sizer.Add(textBox, 1, wxALL|wxEXPAND, 10)
89     sizer.Add(button_close, 0, wxALL|wxALIGN_RIGHT, 10)
90    
91     self.SetAutoLayout(True)
92     self.SetSizer(sizer)
93     sizer.Fit(self)
94     sizer.SetSizeHints(self)
95     self.Layout()
96    
97     EVT_BUTTON(self, wxID_CANCEL, self.OnCancel)
98    
99     def OnCancel(self, event):
100     self.EndModal(wxID_CANCEL)
101    
102    

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26