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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1631 - (show annotations)
Fri Aug 22 16:01:14 2003 UTC (21 years, 6 months ago) by bh
File MIME type: text/x-python
File size: 4105 byte(s)
* Thuban/UI/about.py (About.__init__): Add the psycopg version.

* Thuban/version.py: Add psycopg version

* Thuban/Model/postgisdb.py (psycopg_version): New. Return the
version of the psycopg module

1 # 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 """The About Box"""
9
10 __version__ = "$Revision$"
11 # $Source$
12 # $Id$
13
14 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 lead_developer = 'Bernhard Herzog'
31 developers = [ 'Jonathan Coles', 'Frank Koormann',
32 'Martin Müller', 'Jan-Oliver Wagner' ]
33 translators = [ ( _('French'), 'Daniel Calvelo Aros' ),
34 ( _('German'), 'Björn Broscheit'),
35 ( _('Italian'), 'Maurizio Napolitano'),
36 ( _('Russian'), 'Alex Shevlakov'),
37 ( _('Spanish'), 'Daniel Calvelo Aros') ]
38 other_contributors = [ 'Jonathan Byron', 'Silke Reimer',
39 'Bernhard Reiter' ]
40 dyn_modules = [ ('wxPython', versions['wxPython']),
41 ('Python', versions['python']),
42 ('PySQLite', versions['pysqlite']),
43 ('SQLite', versions['sqlite']),
44 ('GDAL', versions.get('gdal', _('- not available'))),
45 ('psycopg', versions.get('psycopg',
46 _('- not available')))]
47 direct_modules = [ \
48 ('GTK', versions.get('gtk', _('- not available'))),
49 ('proj', versions['proj']) ]
50
51 text = 'Thuban %s\n\n' % versions['thuban-long']
52
53 text += _('Currently using:\n')
54
55 for name, version in dyn_modules:
56 text+= '\t%s %s\n' % (name, version)
57 text += '\n'
58
59 text += _('Compiled for:\n')
60
61 for name, version in direct_modules:
62 text+= '\t%s %s\n' % (name, version)
63 text += '\n'
64
65 text += _('Lead Developer:\n')
66 text += '\t%s\n\n' % lead_developer
67
68 text += _('Developers:\n')
69 for name in developers:
70 text += '\t%s\n' % name
71 text += '\n'
72
73 text += _('Translators:\n')
74 for lang, name in translators:
75 text += '\t%s: %s\n' % (lang, name)
76 text += '\n'
77
78 text += _('Other Contributors:\n')
79 for name in other_contributors:
80 text += '\t%s\n' % name
81 text += '\n'
82
83 text += \
84 _("Questions and comments can be sent to the following addresses:\n"
85 "\tThuban developers:\n\t\t<[email protected]>\n"
86 "\tThuban mailing list:\n\t\t<[email protected]>")
87
88 self.text = text
89
90 text_title = wxStaticText(self, -1,
91 _("Thuban is a program for exploring geographic data.\n\n") +
92 "Copyright 2001-2003 Intevation GmbH.\n" +
93 _("Thuban is licensed under the GNU GPL"),
94 style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE)
95
96 textBox = wxTextCtrl(self, -1, text,
97 style=wxTE_READONLY|wxTE_MULTILINE|wxTE_LINEWRAP)
98 w, h = (300, 150)
99 textBox.SetSizeHints(w, h)
100 textBox.SetSize((w, h))
101
102 button_close = wxButton(self, wxID_CANCEL, _("Close"))
103 button_close.SetDefault()
104
105 sizer = wxBoxSizer(wxVERTICAL)
106 sizer.Add(text_title, 0, wxALL|wxEXPAND|wxADJUST_MINSIZE, 10)
107 sizer.Add(textBox, 1, wxALL|wxEXPAND, 10)
108 sizer.Add(button_close, 0, wxALL|wxALIGN_RIGHT, 10)
109
110 self.SetAutoLayout(True)
111 self.SetSizer(sizer)
112 sizer.Fit(self)
113 sizer.SetSizeHints(self)
114 self.Layout()
115
116 EVT_BUTTON(self, wxID_CANCEL, self.OnCancel)
117
118 def OnCancel(self, event):
119 self.EndModal(wxID_CANCEL)
120
121

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26