/[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

trunk/thuban/Thuban/UI/main.py revision 1968 by bh, Fri Nov 21 14:33:27 2003 UTC branches/WIP-pyshapelib-bramz/Thuban/UI/main.py revision 2734 by bramz, Thu Mar 1 12:42:59 2007 UTC
# Line 7  Line 7 
7  # Read the file COPYING coming with Thuban for details.  # Read the file COPYING coming with Thuban for details.
8    
9  """  """
10  The main entry point for the Thuban GUI.  The main entry point for the Thuban GUI.
11  """  """
12    
13  __version__ = "$Revision$"  __version__ = "$Revision$"
# Line 15  __version__ = "$Revision$" Line 15  __version__ = "$Revision$"
15  import sys  import sys
16  import getopt  import getopt
17    
18  from application import ThubanApplication  import application
19  import Thuban.version  import Thuban.version
20    
21    
# Line 28  def main(): Line 28  def main():
28      """Instantiate the application object and run the application"""      """Instantiate the application object and run the application"""
29    
30      if verify_versions():      if verify_versions():
31          app = ThubanApplication(0)          app = application.ThubanApplication(0)
32          opts, args = getopt.getopt(sys.argv[1:], '',          opts, args = getopt.getopt(sys.argv[1:], '',
33                                     ['enable-attribute-editing'])                                     ['enable-attribute-editing'])
34          for optchar, value in opts:          for optchar, value in opts:
# Line 53  def verify_versions(): Line 53  def verify_versions():
53      Print a message containing any libraries which are wrong.      Print a message containing any libraries which are wrong.
54      Return True if everything is OK, otherwise False.      Return True if everything is OK, otherwise False.
55      """      """
56        
57      errors = Thuban.version.verify_versions()      errors = Thuban.version.verify_versions()
58    
59      if len(errors) > 0:      if len(errors) > 0:

Legend:
Removed from v.1968  
changed lines
  Added in v.2734

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26