Public Member Functions | |
def | __init__ (self) |
def | onKeyPressExtend (self, event) |
def | raw_input |
![]() | |
def | __init__ (self) |
def | changeLine (self, text) |
def | getCurrentLine (self) |
def | onKeyPress (self, widget, event) |
def | onKeyPressExtend (self, event) |
def | showPrompt (self, prompt) |
def | showReturned (self, text) |
def | write |
![]() | |
def | __init__ |
def | complete (self, line) |
def | execute (self) |
def | generatePrompt (self, is_continuation) |
def | historyBack (self) |
def | historyForward (self) |
def | shell |
def | updateNamespace (self, ns_dict) |
Public Attributes | |
cout | |
history_pos | |
interrupt | |
prompt | |
![]() | |
color_pat | |
line_start | |
mark | |
text_buffer | |
![]() | |
complete_sep | |
history_level | |
IP | |
iter_more | |
prompt | |
Private Member Functions | |
def | _processLine (self) |
Additional Inherited Members | |
![]() | |
dictionary | ANSI_COLORS |
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.
def visualizer.ipython_view.IPythonView.__init__ | ( | self | ) |
Initialize. Redirect I/O to console.
Definition at line 515 of file ipython_view.py.
|
private |
Process current command line.
Definition at line 584 of file ipython_view.py.
Referenced by visualizer.ipython_view.IPythonView.onKeyPressExtend().
def visualizer.ipython_view.IPythonView.onKeyPressExtend | ( | self, | |
event | |||
) |
Key press callback with plenty of shell goodness, like history, autocompletions, etc. @param widget: Widget that key press occured in. @type widget: gtk.Widget @param event: Event object. @type event: gtk.gdk.Event @return: True if event should not trickle. @rtype: boolean
Definition at line 544 of file ipython_view.py.
References visualizer.ipython_view.IPythonView._processLine(), visualizer.ipython_view.ConsoleView.changeLine(), visualizer.ipython_view.IterableIPShell.complete(), visualizer.ipython_view.ConsoleView.getCurrentLine(), visualizer.ipython_view.IterableIPShell.historyBack(), visualizer.ipython_view.IterableIPShell.historyForward(), visualizer.ipython_view.IPythonView.interrupt, visualizer.ipython_view.IterableIPShell.prompt, visualizer.ipython_view.ConsoleView.showPrompt(), check-style.PatchChunkLine.write(), check-style.PatchChunk.write(), check-style.Patch.write(), and visualizer.ipython_view.ConsoleView.write().
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.
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 |
Definition at line 523 of file ipython_view.py.
Referenced by visualizer.ipython_view.IPythonView.onKeyPressExtend(), and visualizer.ipython_view.IPythonView.raw_input().
visualizer.ipython_view.IPythonView.prompt |
Definition at line 525 of file ipython_view.py.
Referenced by visualizer.ipython_view.ConsoleView._showReturned().