GRASS Programmer's Manual  6.4.2(2012)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gui_modules.globalvar Namespace Reference

Functions

def CheckWxVersion
 Check wx version.
def CheckForWx
 Try to import wx module and check its version.
def GetGRASSCmds
 Create list of available GRASS commands to use when parsing string from the command line.

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")
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 HIST_WINDOW_SIZE = (500, 350)
tuple GM_WINDOW_SIZE = (500, 600)
list MAP_DISPLAY_STATUSBAR_MODE
string EXT_BIN = '.exe'
string EXT_SCT = '.bat'
dictionary grassCmd = {}
tuple toolbarSize = (24, 24)
 have_mlist = True
tuple hasAgw = CheckWxVersion()

Function Documentation

def gui_modules.globalvar.CheckForWx ( )

Try to import wx module and check its version.

Definition at line 44 of file globalvar.py.

References gui_modules.render.map, and gui_modules.utils.split().

def gui_modules.globalvar.CheckWxVersion (   version = [2)

Check wx version.

Definition at line 36 of file globalvar.py.

References gui_modules.render.map, and gui_modules.utils.split().

def gui_modules.globalvar.GetGRASSCmds (   bin = True,
  scripts = True,
  gui_scripts = True 
)

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

Parameters:
binTrue to include executable into list
scriptsTrue to include scripts into list
gui_scriptsTrue to include GUI scripts into list

Definition at line 129 of file globalvar.py.

References gui_modules.utils.split().


Variable Documentation

tuple gui_modules.globalvar.DIALOG_COLOR_SIZE = (30, 30)

Definition at line 105 of file globalvar.py.

tuple gui_modules.globalvar.DIALOG_COMBOBOX_SIZE = (300, -1)

Definition at line 101 of file globalvar.py.

tuple gui_modules.globalvar.DIALOG_GSELECT_SIZE = (400, -1)

Definition at line 102 of file globalvar.py.

tuple gui_modules.globalvar.DIALOG_LAYER_SIZE = (100, -1)

Definition at line 104 of file globalvar.py.

tuple gui_modules.globalvar.DIALOG_SPIN_SIZE = (150, -1)

Definition at line 100 of file globalvar.py.

tuple gui_modules.globalvar.DIALOG_TEXTCTRL_SIZE = (400, -1)

Definition at line 103 of file globalvar.py.

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

Definition at line 28 of file globalvar.py.

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

Definition at line 29 of file globalvar.py.

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

Definition at line 31 of file globalvar.py.

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

Definition at line 30 of file globalvar.py.

string gui_modules.globalvar.EXT_BIN = '.exe'

Definition at line 123 of file globalvar.py.

string gui_modules.globalvar.EXT_SCT = '.bat'

Definition at line 124 of file globalvar.py.

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

Definition at line 97 of file globalvar.py.

gui_modules.globalvar.FNPageDStyle = FN.FNB_FANCY_TABS|\

Definition at line 92 of file globalvar.py.

gui_modules.globalvar.FNPageStyle = FN.FNB_VC8|\

Definition at line 87 of file globalvar.py.

tuple gui_modules.globalvar.GM_WINDOW_SIZE = (500, 600)

Definition at line 109 of file globalvar.py.

dictionary gui_modules.globalvar.grassCmd = {}

Definition at line 179 of file globalvar.py.

tuple gui_modules.globalvar.hasAgw = CheckWxVersion()

Definition at line 193 of file globalvar.py.

gui_modules.globalvar.have_mlist = True

Definition at line 188 of file globalvar.py.

tuple gui_modules.globalvar.HIST_WINDOW_SIZE = (500, 350)

Definition at line 108 of file globalvar.py.

list gui_modules.globalvar.MAP_DISPLAY_STATUSBAR_MODE
Initial value:
1 [_("Coordinates"),
2  _("Extent"),
3  _("Comp. region"),
4  _("Show comp. extent"),
5  _("Display mode"),
6  _("Display geometry"),
7  _("Map scale"),
8  _("Go to"),
9  _("Projection"),]

Definition at line 111 of file globalvar.py.

tuple gui_modules.globalvar.MAP_WINDOW_SIZE = (800, 600)

Definition at line 107 of file globalvar.py.

string gui_modules.globalvar.QUERYLAYER = 'qlayer'

Definition at line 84 of file globalvar.py.

tuple gui_modules.globalvar.toolbarSize = (24, 24)

Definition at line 184 of file globalvar.py.