GRASS Programmer's Manual  6.4.2(2012)
gui_modules::gcmd Namespace Reference

Data Structures

class  GError
class  GWarning
class  GMessage
class  GException
class  Popen
 Subclass subprocess.Popen. More...
class  Command
 Run command in separate thread. More...
class  CommandThread
 Create separate thread for command. More...

Functions

def recv_some
def send_all
def RunCommand
 Run GRASS command.

Variables

tuple compatPath = os.path.join(globalvar.ETCWXDIR, "compat")
tuple grassPath = os.path.join(globalvar.ETCDIR, "python")
string message = "Other end disconnected!"

Function Documentation

def gui_modules.gcmd.recv_some (   p,
  t = .1,
  e = 1,
  tr = 5,
  stderr = 0 
)

Definition at line 242 of file gcmd.py.

References max.

def gui_modules.gcmd.RunCommand (   prog,
  flags = "",
  overwrite = False,
  quiet = False,
  verbose = False,
  parent = None,
  read = False,
  stdin = None,
  getErrorMsg = False,
  kwargs 
)

Run GRASS command.

Parameters:
progprogram to run
flagsflags given as a string
overwrite,quiet,verboseflags
parentparent window for error messages
readfetch stdout
stdinstdin or None
getErrorMsgget error messages on failure
kwargsprogram parameters
Returns:
returncode (read == False and getErrorMsg == False)
returncode, messages (read == False and getErrorMsg == True)
stdout (read == True and getErrorMsg == False)
returncode, stdout, messages (read == True and getErrorMsg == True)
stdout, stderr

Definition at line 575 of file gcmd.py.

References gui_modules::render.map.

Referenced by gui_modules::psmap_dialogs.ComputeSetRegion(), gui_modules::psmap.DialogDataChanged(), gui_modules.psmap.PsMapFrame.OnCmdDone(), gui_modules.gmodeler.ModelFrame.OnHelp(), gui_modules::psmap.OnHelp(), gui_modules::psmap_dialogs.projInfo(), gui_modules.psmap_dialogs.Instruction.SetRegion(), gui_modules::psmap_dialogs.SetResolution(), and gui_modules.psmap_dialogs.MapFramePanel.update().

def gui_modules.gcmd.send_all (   p,
  data 
)

Definition at line 264 of file gcmd.py.


Variable Documentation

tuple gui_modules::gcmd::compatPath = os.path.join(globalvar.ETCWXDIR, "compat")

Definition at line 41 of file gcmd.py.

tuple gui_modules::gcmd::grassPath = os.path.join(globalvar.ETCDIR, "python")

Definition at line 54 of file gcmd.py.

string gui_modules::gcmd::message = "Other end disconnected!"

Definition at line 240 of file gcmd.py.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines