GRASS Programmer's Manual  6.4.4(2014)-r
forms.GUI Class Reference

Public Member Functions

def __init__
 Parses GRASS commands when module is imported and used from Layer Manager. More...
 
def GetCmd (self)
 Get validated command. More...
 
def ParseCommand
 Parse command. More...
 
def GetCommandInputMapParamKey (self, cmd)
 Get parameter key for input raster/vector map. More...
 

Data Fields

 parent
 
 show
 
 modal
 
 centreOnParent
 
 checkError
 
 grass_task
 
 cmd
 
 mf
 

Detailed Description

Definition at line 1819 of file forms.py.

Constructor & Destructor Documentation

def forms.GUI.__init__ (   self,
  parent = None,
  show = True,
  modal = False,
  centreOnParent = False,
  checkError = False 
)

Parses GRASS commands when module is imported and used from Layer Manager.

Definition at line 1821 of file forms.py.

Member Function Documentation

def forms.GUI.GetCmd (   self)

Get validated command.

Definition at line 1840 of file forms.py.

References render.Layer.cmd, gcmd.Command.cmd, gcmd.CommandThread.cmd, and forms.GUI.cmd.

Referenced by wxnviz.ImageTexture.Corresponds().

def forms.GUI.GetCommandInputMapParamKey (   self,
  cmd 
)

Get parameter key for input raster/vector map.

Parameters
cmdmodule name
Returns
parameter key
None on failure

Definition at line 1960 of file forms.py.

References python.core.decode(), and forms.GUI.grass_task.

def forms.GUI.ParseCommand (   self,
  cmd,
  gmpath = None,
  completed = None 
)

Parse command.

Note: cmd is given as list

If command is given with options, return validated cmd list:

  • add key name for first parameter if not given
  • change mapname to mapname

Definition at line 1844 of file forms.py.

References gcmd.GetRealCmd(), forms.GUI.grass_task, and forms.GUI.show.

Field Documentation

forms.GUI.centreOnParent

Definition at line 1828 of file forms.py.

forms.GUI.checkError

Definition at line 1829 of file forms.py.

forms.GUI.grass_task

Definition at line 1831 of file forms.py.

Referenced by forms.GUI.GetCommandInputMapParamKey(), and forms.GUI.ParseCommand().

forms.GUI.mf

Definition at line 1930 of file forms.py.

forms.GUI.modal

Definition at line 1827 of file forms.py.

forms.GUI.show

Definition at line 1826 of file forms.py.

Referenced by forms.GUI.ParseCommand().


The documentation for this class was generated from the following file: