GRASS Programmer's Manual  6.4.2(2012)
g.change.gui.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 ############################################################################
00004 #
00005 # MODULE:       g.change.gui
00006 # AUTHOR(S):    Hamish Bowman
00007 # PURPOSE:      
00008 # COPYRIGHT:    (C) 2009 GRASS Development Team
00009 #
00010 #  This program is free software; you can redistribute it and/or modify
00011 #  it under the terms of the GNU General Public License as published by
00012 #  the Free Software Foundation; either version 2 of the License, or
00013 #  (at your option) any later version.
00014 #
00015 #  This program is distributed in the hope that it will be useful,
00016 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018 #  GNU General Public License for more details.
00019 #
00020 ############################################################################
00021 #%Module
00022 #% description: Changes the default GRASS graphical user interface (GUI) setting.
00023 #% keywords: general, gui
00024 #%End
00025 #%Option
00026 #% key: gui
00027 #% type: string
00028 #% required: yes
00029 #% multiple: no
00030 #% options: tcltk,oldtcltk,wxpython,text
00031 #% label: GUI type
00032 #% description: Default value: GRASS_GUI if defined otherwise tcltk
00033 #% descriptions: tcltk;Tcl/Tk based GUI - GIS Manager (gis.m);oldtcltk;Old Tcl/Tk based GUI - Display Manager (d.m);wxpython;wxPython based next generation GUI;text;command line interface only
00034 #%End
00035 
00036 # simple front end to g.gui to be used from within the GUI.
00037 
00038 import sys
00039 from grass.script import core as grass
00040 
00041 def main():
00042     grass.exec_command("g.gui", flags = 'nu', gui = options['gui'])
00043     
00044     return 0
00045 
00046 if __name__ == "__main__":
00047     options, flags = grass.parser()
00048     sys.exit(main())
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines