/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/main.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/main.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6 by bh, Tue Aug 28 15:41:52 2001 UTC revision 39 by bh, Thu Sep 6 17:18:22 2001 UTC
# Line 23  import sys Line 23  import sys
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    
# Line 34  def main(): Line 38  def main():
38      app = ThubanApplication(0)      app = ThubanApplication(0)
39      if len(sys.argv) > 1:      if len(sys.argv) > 1:
40          app.OpenSession(sys.argv[1])          app.OpenSession(sys.argv[1])
41        app.top.ShowSessionTree()
42      app.MainLoop()      app.MainLoop()

Legend:
Removed from v.6  
changed lines
  Added in v.39

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26