Name
Textpad
Synopsis
class Textpad(window
)
Creates and returns an instance t
of class
Textpad
that wraps the curses
window instance window
. Instance
t
has one frequently used method:
-
t
.edit( )
Lets the user perform interactive editing on the contents of the window instance that
t
wraps. The editing session supports simple Emacs-like key bindings: normal characters overwrite the window’s previous contents, arrow keys move the cursor, Ctrl-H deletes the character to the cursor’s left. When the user hits Ctrl-G, the editing session ends, andedit
returns the window’s contents as a single string, with newlines as line separators.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.