GRASS Programmer's Manual  6.4.2(2012)
gui_modules.gcmd.CommandThread Class Reference

Create separate thread for command. More...

Inheritance diagram for gui_modules.gcmd.CommandThread:
Collaboration diagram for gui_modules.gcmd.CommandThread:

Public Member Functions

def __init__
def __del__
def run
 Run command.
def abort
 Abort running process, used by main thread to signal an abort.

Data Fields

 cmd
 stdin
 stdout
 stderr
 module
 error
 aborted
 message_format
 startTime

Detailed Description

Create separate thread for command.

Used for commands launched on the background.

Definition at line 441 of file gcmd.py.


Constructor & Destructor Documentation

def gui_modules.gcmd.CommandThread.__init__ (   self,
  cmd,
  stdin = None,
  stdout = sys.stdout,
  stderr = sys.stderr 
)
@param cmd command (given as list)
@param stdin standard input stream 
@param stdout redirect standard output or None
@param stderr redirect standard error output or None

Definition at line 444 of file gcmd.py.


Member Function Documentation

Abort running process, used by main thread to signal an abort.

Definition at line 551 of file gcmd.py.

References gui_modules.gcmd.CommandThread._want_abort.

Run command.

Definition at line 477 of file gcmd.py.


Field Documentation


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines