A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
visualizer.ipython_view.IPythonView Class Reference
+ Inheritance diagram for visualizer.ipython_view.IPythonView:
+ Collaboration diagram for visualizer.ipython_view.IPythonView:

Public Member Functions

def __init__
 
def onKeyPressExtend
 
def raw_input
 
- Public Member Functions inherited from visualizer.ipython_view.ConsoleView
def __init__
 
def changeLine
 
def getCurrentLine
 
def onKeyPress
 
def onKeyPressExtend
 
def showPrompt
 
def showReturned
 
def write
 
- Public Member Functions inherited from visualizer.ipython_view.IterableIPShell
def __init__
 
def complete
 
def execute
 
def generatePrompt
 
def historyBack
 
def historyForward
 
def shell
 
def updateNamespace
 

Public Attributes

 cout
 
 history_pos
 
 interrupt
 
 prompt
 
- Public Attributes inherited from visualizer.ipython_view.ConsoleView
 color_pat
 
 line_start
 
 mark
 
 text_buffer
 
- Public Attributes inherited from visualizer.ipython_view.IterableIPShell
 complete_sep
 
 history_level
 
 IP
 
 iter_more
 
 prompt
 

Private Member Functions

def _processLine
 

Additional Inherited Members

- Static Public Attributes inherited from visualizer.ipython_view.ConsoleView
dictionary ANSI_COLORS
 

Detailed Description

Sub-class of both modified IPython shell and L{ConsoleView} this makes
a GTK+ IPython console.

Definition at line 510 of file ipython_view.py.

Constructor & Destructor Documentation

def visualizer.ipython_view.IPythonView.__init__ (   self)
Initialize. Redirect I/O to console.

Definition at line 515 of file ipython_view.py.

Member Function Documentation

def visualizer.ipython_view.IPythonView._processLine (   self)
private
Process current command line.

Definition at line 584 of file ipython_view.py.

Referenced by visualizer.ipython_view.IPythonView.onKeyPressExtend().

+ Here is the caller graph for this function:

def visualizer.ipython_view.IPythonView.onKeyPressExtend (   self,
  event 
)
def visualizer.ipython_view.IPythonView.raw_input (   self,
  prompt = '' 
)
Custom raw_input() replacement. Get's current line from console buffer.

@param prompt: Prompt to print. Here for compatability as replacement.
@type prompt: string

@return: The current command line text.
@rtype: string

Definition at line 529 of file ipython_view.py.

References visualizer.ipython_view.ConsoleView.getCurrentLine(), and visualizer.ipython_view.IPythonView.interrupt.

+ Here is the call graph for this function:

Member Data Documentation

visualizer.ipython_view.IPythonView.cout

Definition at line 520 of file ipython_view.py.

visualizer.ipython_view.IPythonView.history_pos

Definition at line 588 of file ipython_view.py.

visualizer.ipython_view.IPythonView.interrupt
visualizer.ipython_view.IPythonView.prompt

Definition at line 525 of file ipython_view.py.

Referenced by visualizer.ipython_view.ConsoleView._showReturned().


The documentation for this class was generated from the following file: