IPython Documentation

Table Of Contents

Previous topic

Module: qt.console.ipython_widget

Next topic

Module: qt.console.mainwindow

This Page

Module: qt.console.kill_ring

A generic Emacs-style kill ring, as well as a Qt-specific version.

2 Classes

class IPython.qt.console.kill_ring.KillRing

Bases: object

A generic Emacs-style kill ring.

__init__()
clear()

Clears the kill ring.

kill(text)

Adds some killed text to the ring.

rotate()

Rotate the kill ring, then yank back the new top.

Returns:A text string or None.
yank()

Yank back the most recently killed text.

Returns:A text string or None.
class IPython.qt.console.kill_ring.QtKillRing(text_edit)

Bases: PySide.QtCore.QObject

A kill ring attached to Q[Plain]TextEdit.

__init__(text_edit)

Create a kill ring attached to the specified Qt text edit.

clear()

Clears the kill ring.

kill(text)

Adds some killed text to the ring.

kill_cursor(cursor)

Kills the text selected by the give cursor.

rotate()

Rotate the kill ring, then yank back the new top.

yank()

Yank back the most recently killed text.