| Trees | Indices | Help |
|---|
|
|
code.InteractiveInterpreter --+
|
code.InteractiveConsole --+
|
object --+ |
| |
baseObject.AutoPropertyObject --+
|
PythonConsole
An interactive Python console for NVDA which directs output to supplied functions. This is necessary for a Python console with input/output other than stdin/stdout/stderr. Input is always received via the push method. This console handles redirection of stdout and stderr and prevents clobbering of the gettext "_" builtin. The console's namespace is populated with useful modules and can be updated with a snapshot of NVDA's state using updateNamespaceSnapshotVars.
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Constructor. The optional locals argument will be passed to the InteractiveInterpreter base class. The optional filename argument should specify the (file)name of the input stream; it will show up in tracebacks.
|
Write a string. The base implementation writes to sys.stderr; a subclass may replace this with a different implementation.
|
Push a line to the interpreter. The line should not have a trailing newline; it may have internal newlines. The line is appended to a buffer and the interpreter's runsource() method is called with the concatenated contents of the buffer as source. If this indicates that the command was executed or invalid, the buffer is reset; otherwise, the command is incomplete, and the buffer is left as it was after the line was appended. The return value is 1 if more input is required, 0 if the line was dealt with in some way (this is the same as runsource()).
|
Update the console namespace with a snapshot of NVDA's current state. This creates/updates variables for the current focus, navigator object, etc. |
Remove the variables from the console namespace containing the last snapshot of NVDA's state. This removes the variables added by updateNamespaceSnapshotVars. |
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Fri Nov 18 17:45:59 2011 | http://epydoc.sourceforge.net |