| Home | Trees | Index | Help |
|
|---|
| Package pyrobot :: Package gui :: Module tty :: Class TTYGui |
|
gui --+
|
InteractiveInterpreter --+ |
| |
InteractiveConsole --+
|
TTYGui
| Method Summary | |
|---|---|
__init__(self,
filename,
histfile,
engine)
| |
init_history(self,
histfile)
| |
Push a line to the interpreter. | |
raw_input(self,
prompt)
| |
run(self,
evalcommand)
| |
save_history(self,
histfile)
| |
| Inherited from InteractiveConsole | |
Closely emulate the interactive Python console. | |
Reset the input buffer. | |
| Inherited from InteractiveInterpreter | |
Execute a code object. | |
Compile and run some source in the interpreter. | |
Display the syntax error that just occurred. | |
Display the exception that just occurred. | |
Write a string. | |
| Inherited from gui | |
| |
| |
Read a line from user... | |
Read a line from user... | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Could bind a key right here ^1, ^2, ^3... | |
Text-based watcher... | |
Tk gui overrides this method. | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| Method Details |
|---|
push(self, line)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()).
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Jul 25 01:39:25 2005 | http://epydoc.sf.net |