5 |
# This program is free software under the GPL (>=v2) |
# This program is free software under the GPL (>=v2) |
6 |
# Read the file COPYING coming with Thuban for details. |
# 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 * |
from wxPython.wx import * |
|
#from wxPython.wx import __version__ as wxPython_version |
|
15 |
|
|
16 |
from Thuban import _ |
from Thuban import _ |
|
#import Thuban.version |
|
17 |
from Thuban.version import versions |
from Thuban.version import versions |
18 |
|
|
|
#from sqlite import version as pysqlite_version |
|
|
#from _sqlite import sqlite_version |
|
|
|
|
|
#from wxproj import get_proj_version, get_gtk_version |
|
|
|
|
|
#from Thuban.Model.resource import has_gdal_support |
|
|
|
|
|
#if has_gdal_support(): |
|
|
# from gdalwarp import get_gdal_version |
|
|
|
|
19 |
class About(wxDialog): |
class About(wxDialog): |
20 |
|
|
21 |
def __init__(self, parent): |
def __init__(self, parent): |
27 |
| wxRESIZE_BORDER, |
| wxRESIZE_BORDER, |
28 |
size = (400, 250)) |
size = (400, 250)) |
29 |
|
|
|
#proj_ver = get_proj_version() |
|
|
#if proj_ver: |
|
|
#proj_ver = "%d.%d.%d" % proj_ver |
|
|
#else: |
|
|
#proj_ver = " - not available" |
|
|
|
|
|
#gtk_ver = get_gtk_version() |
|
|
#if gtk_ver: |
|
|
#gtk_ver = "%d.%d.%d" % gtk_ver |
|
|
#else: |
|
|
#gtk_ver = " - not available" |
|
|
|
|
30 |
text = _(#"Build Date: %s\n" |
text = _(#"Build Date: %s\n" |
31 |
"%s\n\n" |
"%s\n\n" |
32 |
"Currently using:\n" |
"Currently using:\n" |
39 |
"\t%s\n" |
"\t%s\n" |
40 |
"\t%s\n\n" |
"\t%s\n\n" |
41 |
"Lead Developer:\n" |
"Lead Developer:\n" |
42 |
"\tBernhard Herzog <[email protected]>\n\n" |
"\tBernhard Herzog\n\n" |
43 |
"Developers:\n" |
"Developers:\n" |
44 |
"\tJonathan Coles\n" |
"\tJonathan Coles\n" |
45 |
"\tFrank Koormann\n" |
"\tFrank Koormann\n" |
47 |
"\tJan-Oliver Wagner\n\n" |
"\tJan-Oliver Wagner\n\n" |
48 |
"Contributors:\n" |
"Contributors:\n" |
49 |
"\tJonathan Byron\n" |
"\tJonathan Byron\n" |
50 |
"\tMartin M�ller" |
"\tMartin M�ller\n\n" |
51 |
|
"Questions and comments can be sent to the following addresses:\n" |
52 |
|
"\tThuban developers:\n\t\t<[email protected]>\n" |
53 |
|
"\tThuban mailing list:\n\t\t<[email protected]>" |
54 |
% ("Thuban %s" % versions['thuban-long'], |
% ("Thuban %s" % versions['thuban-long'], |
55 |
"wxPython %s" % versions['wxPython'], |
"wxPython %s" % versions['wxPython'], |
56 |
"Python %s" % versions['python'], |
"Python %s" % versions['python'], |
57 |
"PySQLite %s" % versions['pysqlite'], |
"PySQLite %s" % versions['pysqlite'], |
58 |
"SQLite %s" % versions['sqlite'], |
"SQLite %s" % versions['sqlite'], |
59 |
"GDAL %s" % versions.get('gdal', " - not available"), |
"GDAL %s" % versions.get('gdal', "- not available"), |
60 |
"GTK %s" % versions.get('gtk', " - not available"), |
"GTK %s" % versions.get('gtk', "- not available"), |
61 |
"proj %s" % versions['proj'])) |
"proj %s" % versions['proj'])) |
62 |
|
|
63 |
self.text = text |
self.text = text |