GRASS Programmer's Manual  6.4.4(2014)-r
globalvar Namespace Reference

Functions

def CheckWxVersion (version=[2)
 Check wx version. More...
 
def CheckForWx ()
 Try to import wx module and check its version. More...
 
def GetGRASSCommands ()
 Create list of available GRASS commands to use when parsing string from the command line. More...
 
def UpdateGRASSAddOnCommands
 Update list of available GRASS AddOns commands to use when parsing string from the command line. More...
 
def SetLanguage ()
 

Variables

tuple ETCDIR = os.path.join(os.getenv("GISBASE"), "etc")
 
tuple ETCICONDIR = os.path.join(os.getenv("GISBASE"), "etc", "gui", "icons")
 
tuple ETCWXDIR = os.path.join(ETCDIR, "wxpython")
 
tuple ETCIMGDIR = os.path.join(ETCDIR, "gui", "images")
 
tuple ETCSYMBOLDIR = os.path.join(ETCDIR, "gui", "images", "symbols")
 
string QUERYLAYER = 'qlayer'
 
 FNPageStyle = FN.FNB_VC8|\
 
 FNPageDStyle = FN.FNB_FANCY_TABS|\
 
tuple FNPageColor = wx.Colour(125,200,175)
 
tuple DIALOG_SPIN_SIZE = (150, -1)
 
tuple DIALOG_COMBOBOX_SIZE = (300, -1)
 
tuple DIALOG_GSELECT_SIZE = (400, -1)
 
tuple DIALOG_TEXTCTRL_SIZE = (400, -1)
 
tuple DIALOG_LAYER_SIZE = (100, -1)
 
tuple DIALOG_COLOR_SIZE = (30, 30)
 
tuple MAP_WINDOW_SIZE = (800, 600)
 
tuple GM_WINDOW_SIZE = (500, 600)
 
string BIN_EXT = '.exe'
 
string SCT_EXT = '.bat'
 
tuple toolbarSize = (24, 24)
 
 have_mlist = True
 
tuple hasAgw = CheckWxVersion()
 

Function Documentation

def globalvar.CheckForWx ( )

Try to import wx module and check its version.

Definition at line 41 of file globalvar.py.

def globalvar.GetGRASSCommands ( )

Create list of available GRASS commands to use when parsing string from the command line.

Returns
list of commands (set) and directory of scripts (collected by extension - MS Windows only)

Definition at line 114 of file globalvar.py.

References main.set.

Referenced by SetLanguage().

def globalvar.SetLanguage ( )

Definition at line 203 of file globalvar.py.

References GetGRASSCommands(), and UpdateGRASSAddOnCommands().

def globalvar.UpdateGRASSAddOnCommands (   eList = None)

Update list of available GRASS AddOns commands to use when parsing string from the command line.

Parameters
eListlist of AddOns commands to remove

Definition at line 157 of file globalvar.py.

References utils.split().

Referenced by extensions.InstallExtensionWindow.OnDone(), extensions.UninstallExtensionWindow.OnUninstall(), and SetLanguage().

Variable Documentation

string globalvar.BIN_EXT = '.exe'

Definition at line 109 of file globalvar.py.

tuple globalvar.DIALOG_COLOR_SIZE = (30, 30)

Definition at line 103 of file globalvar.py.

tuple globalvar.DIALOG_COMBOBOX_SIZE = (300, -1)

Definition at line 99 of file globalvar.py.

tuple globalvar.DIALOG_GSELECT_SIZE = (400, -1)

Definition at line 100 of file globalvar.py.

tuple globalvar.DIALOG_LAYER_SIZE = (100, -1)

Definition at line 102 of file globalvar.py.

tuple globalvar.DIALOG_SPIN_SIZE = (150, -1)

Definition at line 98 of file globalvar.py.

tuple globalvar.DIALOG_TEXTCTRL_SIZE = (400, -1)

Definition at line 101 of file globalvar.py.

tuple globalvar.ETCDIR = os.path.join(os.getenv("GISBASE"), "etc")

Definition at line 22 of file globalvar.py.

tuple globalvar.ETCICONDIR = os.path.join(os.getenv("GISBASE"), "etc", "gui", "icons")

Definition at line 23 of file globalvar.py.

tuple globalvar.ETCIMGDIR = os.path.join(ETCDIR, "gui", "images")

Definition at line 25 of file globalvar.py.

tuple globalvar.ETCSYMBOLDIR = os.path.join(ETCDIR, "gui", "images", "symbols")

Definition at line 26 of file globalvar.py.

tuple globalvar.ETCWXDIR = os.path.join(ETCDIR, "wxpython")

Definition at line 24 of file globalvar.py.

tuple globalvar.FNPageColor = wx.Colour(125,200,175)

Definition at line 95 of file globalvar.py.

globalvar.FNPageDStyle = FN.FNB_FANCY_TABS|\

Definition at line 90 of file globalvar.py.

globalvar.FNPageStyle = FN.FNB_VC8|\

Definition at line 85 of file globalvar.py.

tuple globalvar.GM_WINDOW_SIZE = (500, 600)

Definition at line 106 of file globalvar.py.

tuple globalvar.hasAgw = CheckWxVersion()

Definition at line 274 of file globalvar.py.

globalvar.have_mlist = True

Definition at line 269 of file globalvar.py.

tuple globalvar.MAP_WINDOW_SIZE = (800, 600)

Definition at line 105 of file globalvar.py.

string globalvar.QUERYLAYER = 'qlayer'

Definition at line 82 of file globalvar.py.

string globalvar.SCT_EXT = '.bat'

Definition at line 110 of file globalvar.py.

tuple globalvar.toolbarSize = (24, 24)

Definition at line 265 of file globalvar.py.