robot_fingers.curses module

Tools for creating simple curses interfaces.

class robot_fingers.curses.SimpleCursesGUI(win, title, status_line=None)[source]

Bases: object

Wrapper around curses to manage simple generic GUIs.

A very simple curses interface with a title at the top, a static status line at the bottom and some arbitrary text in between that can be updated.

display_error(message)[source]

Display error message and wait until user presses a key.

Parameters:

message – The error message that is displayed.

get_pressed_key()[source]

Get key pressed by the user.

update_screen(lines)[source]

Update the screen with the given lines of text.

Parameters:

lines (list) – List of strings. They are drawn in separate lines.