ConsoleView class. More...
 Inheritance diagram for visualizer.ipython_view.ConsoleView:
 Collaboration diagram for visualizer.ipython_view.ConsoleView:Public Member Functions | |
| def | __init__ (self) | 
| def | changeLine (self, text) | 
| Replace currently entered command line with given text.   | |
| def | getCurrentLine (self) | 
| Get text in current command line.   | |
| def | onKeyPress (self, widget, event) | 
| Key press callback used for correcting behavior for console-like interfaces.   | |
| def | onKeyPressExtend (self, event) | 
| For some reason we can't extend onKeyPress directly (bug #500900).   | |
| def | showPrompt (self, prompt) | 
| Prints prompt at start of line.   | |
| def | showReturned (self, text) | 
| Show returned text from last command and print new prompt.   | |
| def | write (self, text, editable=False) | 
| Write given text to buffer.   | |
Public Attributes | |
| color_pat | |
| color pattern   | |
| line_start | |
| line start   | |
| mark | |
| scroll mark   | |
| text_buffer | |
| text buffer   | |
Static Public Attributes | |
| dict | ANSI_COLORS | 
| color list   | |
Protected Member Functions | |
| def | _changeLine (self, text) | 
| Replace currently entered command line with given text.   | |
| def | _showPrompt (self, prompt) | 
| Prints prompt at start of line.   | |
| def | _showReturned (self, text) | 
| Show returned text from last command and print new prompt.   | |
| def | _write (self, text, editable=False) | 
| Write given text to buffer.   | |
ConsoleView class.
Definition at line 348 of file ipython_view.py.
| def visualizer.ipython_view.ConsoleView.__init__ | ( | self | ) | 
Initialize console view.
Reimplemented in visualizer.ipython_view.IPythonView.
Definition at line 414 of file ipython_view.py.
      
  | 
  protected | 
Replace currently entered command line with given text.
_changeLine function
| text | Text to use as replacement. | 
Definition at line 508 of file ipython_view.py.
References visualizer.ipython_view.ConsoleView._write(), delete, visualizer.ipython_view.ConsoleView.line_start, and visualizer.ipython_view.ConsoleView.text_buffer.
Referenced by visualizer.ipython_view.ConsoleView.changeLine().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Prints prompt at start of line.
_showPrompt function
| prompt | Prompt to print. | 
Definition at line 489 of file ipython_view.py.
References visualizer.ipython_view.ConsoleView._write(), visualizer.ipython_view.ConsoleView.line_start, and visualizer.ipython_view.ConsoleView.text_buffer.
Referenced by visualizer.ipython_view.ConsoleView._showReturned(), and visualizer.ipython_view.ConsoleView.showPrompt().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Show returned text from last command and print new prompt.
_showReturned function
| text | Text to show. | 
Definition at line 542 of file ipython_view.py.
References visualizer.ipython_view.ConsoleView._showPrompt(), visualizer.ipython_view.ConsoleView._write(), visualizer.ipython_view.IterableIPShell.indent_spaces, visualizer.ipython_view.IterableIPShell.IP, visualizer.ipython_view.ConsoleView.line_start, visualizer.ipython_view.IterableIPShell.no_input_splitter, visualizer.ipython_view.IterableIPShell.prompt, visualizer.ipython_view.IPythonView.prompt, and visualizer.ipython_view.ConsoleView.text_buffer.
Referenced by visualizer.ipython_view.ConsoleView.showReturned().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Write given text to buffer.
_write function
| text | Text to append. | 
| editable | If true, added text is editable. | 
Definition at line 450 of file ipython_view.py.
References visualizer.ipython_view.ConsoleView.color_pat, visualizer.ipython_view.ConsoleView.mark, and visualizer.ipython_view.ConsoleView.text_buffer.
Referenced by visualizer.ipython_view.ConsoleView._changeLine(), visualizer.ipython_view.ConsoleView._showPrompt(), visualizer.ipython_view.ConsoleView._showReturned(), and visualizer.ipython_view.ConsoleView.write().
 Here is the caller graph for this function:| def visualizer.ipython_view.ConsoleView.changeLine | ( | self, | |
| text | |||
| ) | 
Replace currently entered command line with given text.
| text | Text to use as replacement. | 
Definition at line 499 of file ipython_view.py.
References visualizer.ipython_view.ConsoleView._changeLine().
Referenced by visualizer.ipython_view.IPythonView.onKeyPressExtend().
 Here is the call graph for this function:
 Here is the caller graph for this function:| def visualizer.ipython_view.ConsoleView.getCurrentLine | ( | self | ) | 
Get text in current command line.
Definition at line 520 of file ipython_view.py.
References visualizer.ipython_view.ConsoleView.line_start, and visualizer.ipython_view.ConsoleView.text_buffer.
Referenced by visualizer.ipython_view.IPythonView.onKeyPressExtend(), and visualizer.ipython_view.IPythonView.raw_input().
 Here is the caller graph for this function:| visualizer.ipython_view.ConsoleView.onKeyPress | ( | self, | |
| widget, | |||
| event | |||
| ) | 
Key press callback used for correcting behavior for console-like interfaces.
onKeyPress function
For example 'home' should go to prompt, not to beginning of line.
| widget | Widget that key press accored in. | 
| event | Event object | 
Definition at line 568 of file ipython_view.py.
References delete, visualizer.ipython_view.ConsoleView.line_start, visualizer.ipython_view.ConsoleView.onKeyPressExtend(), visualizer.ipython_view.IPythonView.onKeyPressExtend(), visualizer.ipython_view.IterableIPShell.prompt, visualizer.ipython_view.IPythonView.prompt, and visualizer.ipython_view.ConsoleView.text_buffer.
 Here is the call graph for this function:| def visualizer.ipython_view.ConsoleView.onKeyPressExtend | ( | self, | |
| event | |||
| ) | 
For some reason we can't extend onKeyPress directly (bug #500900).
| event | key press | 
Reimplemented in visualizer.ipython_view.IPythonView.
Definition at line 634 of file ipython_view.py.
Referenced by visualizer.ipython_view.ConsoleView.onKeyPress().
 Here is the caller graph for this function:| def visualizer.ipython_view.ConsoleView.showPrompt | ( | self, | |
| prompt | |||
| ) | 
Prints prompt at start of line.
| prompt | Prompt to print. | 
Definition at line 480 of file ipython_view.py.
References visualizer.ipython_view.ConsoleView._showPrompt().
Referenced by visualizer.ipython_view.IPythonView.onKeyPressExtend().
 Here is the call graph for this function:
 Here is the caller graph for this function:| def visualizer.ipython_view.ConsoleView.showReturned | ( | self, | |
| text | |||
| ) | 
Show returned text from last command and print new prompt.
| text | Text to show. | 
Definition at line 533 of file ipython_view.py.
References visualizer.ipython_view.ConsoleView._showReturned().
 Here is the call graph for this function:| def visualizer.ipython_view.ConsoleView.write | ( | self, | |
| text, | |||
editable = False  | 
        |||
| ) | 
Write given text to buffer.
| text | Text to append. | 
| editable | If true, added text is editable. | 
Definition at line 440 of file ipython_view.py.
References visualizer.ipython_view.ConsoleView._write().
Referenced by visualizer.ipython_view.IPythonView.onKeyPressExtend().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
color list
Definition at line 388 of file ipython_view.py.
| visualizer.ipython_view.ConsoleView.color_pat | 
color pattern
Definition at line 434 of file ipython_view.py.
Referenced by visualizer.ipython_view.ConsoleView._write().
| visualizer.ipython_view.ConsoleView.line_start | 
line start
Definition at line 435 of file ipython_view.py.
Referenced by visualizer.ipython_view.ConsoleView._changeLine(), visualizer.ipython_view.ConsoleView._showPrompt(), visualizer.ipython_view.ConsoleView._showReturned(), visualizer.ipython_view.ConsoleView.getCurrentLine(), and visualizer.ipython_view.ConsoleView.onKeyPress().
| visualizer.ipython_view.ConsoleView.mark | 
scroll mark
Definition at line 422 of file ipython_view.py.
Referenced by visualizer.ipython_view.ConsoleView._write().
| visualizer.ipython_view.ConsoleView.text_buffer | 
text buffer
Definition at line 421 of file ipython_view.py.
Referenced by visualizer.ipython_view.ConsoleView._changeLine(), visualizer.ipython_view.ConsoleView._showPrompt(), visualizer.ipython_view.ConsoleView._showReturned(), visualizer.ipython_view.ConsoleView._write(), visualizer.ipython_view.ConsoleView.getCurrentLine(), and visualizer.ipython_view.ConsoleView.onKeyPress().