1 |
#! /usr/bin/python |
#! /usr/bin/python |
2 |
# Copyright (C) 2001 by Intevation GmbH |
# Copyright (C) 2001, 2002 by Intevation GmbH |
3 |
# Authors: |
# Authors: |
4 |
# Jan-Oliver Wagner <[email protected]> |
# Jan-Oliver Wagner <[email protected]> |
5 |
# Bernhard Herzog <[email protected]> |
# Bernhard Herzog <[email protected]> |
23 |
# something harmless like float("1.2") may fail when run under a non-C |
# something harmless like float("1.2") may fail when run under a non-C |
24 |
# locale like de_DE |
# locale like de_DE |
25 |
import wxPython.wx |
import wxPython.wx |
26 |
import locale |
try: |
27 |
locale.setlocale(locale.LC_ALL, "") |
import locale |
28 |
|
locale.setlocale(locale.LC_ALL, "") |
29 |
|
except ImportError: |
30 |
|
# the locale module may not be available on some systems |
31 |
|
pass |
32 |
|
|
33 |
from application import ThubanApplication |
from application import ThubanApplication |
34 |
|
|
35 |
def main(): |
def main(): |
36 |
"""Instantiate the application object and run the application""" |
"""Instantiate the application object and run the application""" |
|
global app |
|
37 |
app = ThubanApplication(0) |
app = ThubanApplication(0) |
38 |
if len(sys.argv) > 1: |
if len(sys.argv) > 1: |
39 |
app.OpenSession(sys.argv[1]) |
app.OpenSession(sys.argv[1]) |
40 |
|
app.top.ShowSessionTree() |
41 |
app.MainLoop() |
app.MainLoop() |