PythonShellWidget Class Reference

List of all members.

Public Member Functions

def __init__
def redirectIO
 Redirect all console IO to this widget.
def restoreIO
 Restore all console IO to their original targets.
def flush
 Simulate stdin, stdout, and stderr.
def isatty
 Simulate stdin, stdout, and stderr.
def readline
 Simulate stdin, stdout, and stderr.
def write
 Simulate stdin, stdout, and stderr.
def writelines
 Simulate stdin, stdout, and stderr.
def fakeUser
 Simulate a user.
def __run
 Execute entered Python statement.
def __clearLine
 Clear input line buffer.
def __insertText
 Insert text at the current cursor position.
def keyPressEvent
 Handle user input a key at a time.
def __deleteLine
 Delete a line.
def __recall
 Display the current item from the command history.
def focusNextPrevChild
 Suppress tabbing to the next window in multi-line commands.
def handleClicked
 Save the selected text to the clipboard.
def contentsContextMenuEvent
 Paste the contents of the clipboard to the cursor position.

Public Attributes

 interpreter
 log
 parent
 eofKey
 line
 lines
 point
 more
 reading
 history
 pointer
 xLast
 yLast
 clip

Detailed Description

Definition at line 73 of file rcPythonShell.py.


Member Function Documentation

def __clearLine   self  ) 
 

Clear input line buffer.

Definition at line 245 of file rcPythonShell.py.

def __deleteLine   self  ) 
 

Delete a line.

Definition at line 339 of file rcPythonShell.py.

def __init__   self,
  locals = None,
  log = '',
  parent = None
 

Definition at line 74 of file rcPythonShell.py.

def __insertText   self,
  text
 

Insert text at the current cursor position.

Definition at line 252 of file rcPythonShell.py.

def __recall   self  ) 
 

Display the current item from the command history.

Definition at line 349 of file rcPythonShell.py.

def __run   self  ) 
 

Execute entered Python statement.

Append the last line to the history list, let the interpreter execute the last line(s), and clean up accounting for the interpreter results: (1) the interpreter succeeds (2) the interpreter fails, finds no errors and wants more line(s) (3) the interpreter fails, finds errors and writes them to sys.stderr

Definition at line 222 of file rcPythonShell.py.

def contentsContextMenuEvent   self,
  ev
 

Paste the contents of the clipboard to the cursor position.

Definition at line 375 of file rcPythonShell.py.

def fakeUser   self,
  lines
 

Simulate a user.

Parameters:
lines Sequence of strings, (Python statements).

Definition at line 211 of file rcPythonShell.py.

def flush   self  ) 
 

Simulate stdin, stdout, and stderr.

Definition at line 165 of file rcPythonShell.py.

def focusNextPrevChild   self,
  next
 

Suppress tabbing to the next window in multi-line commands.

Definition at line 357 of file rcPythonShell.py.

def handleClicked   self,
  para,
  pos
 

Save the selected text to the clipboard.

Definition at line 365 of file rcPythonShell.py.

def isatty   self  ) 
 

Simulate stdin, stdout, and stderr.

Definition at line 171 of file rcPythonShell.py.

def keyPressEvent   self,
  e
 

Handle user input a key at a time.

Definition at line 262 of file rcPythonShell.py.

def readline   self  ) 
 

Simulate stdin, stdout, and stderr.

Definition at line 177 of file rcPythonShell.py.

def redirectIO   self  ) 
 

Redirect all console IO to this widget.

Definition at line 148 of file rcPythonShell.py.

def restoreIO   self  ) 
 

Restore all console IO to their original targets.

Definition at line 157 of file rcPythonShell.py.

def write   self,
  text
 

Simulate stdin, stdout, and stderr.

Definition at line 191 of file rcPythonShell.py.

def writelines   self,
  text
 

Simulate stdin, stdout, and stderr.

Definition at line 204 of file rcPythonShell.py.


Member Data Documentation

clip
 

Definition at line 105 of file rcPythonShell.py.

eofKey
 

Definition at line 87 of file rcPythonShell.py.

history
 

Definition at line 101 of file rcPythonShell.py.

interpreter
 

Definition at line 78 of file rcPythonShell.py.

line
 

Definition at line 92 of file rcPythonShell.py.

lines
 

Definition at line 93 of file rcPythonShell.py.

log
 

Definition at line 81 of file rcPythonShell.py.

more
 

Definition at line 97 of file rcPythonShell.py.

parent
 

Definition at line 83 of file rcPythonShell.py.

point
 

Definition at line 95 of file rcPythonShell.py.

pointer
 

Definition at line 102 of file rcPythonShell.py.

reading
 

Definition at line 99 of file rcPythonShell.py.

xLast
 

Definition at line 103 of file rcPythonShell.py.

yLast
 

Definition at line 104 of file rcPythonShell.py.


The documentation for this class was generated from the following file:
Generated on Thu Apr 27 20:53:28 2006 for LICOS L02-01-00 by doxygen 1.4.6-NO