awsc.termui.dialog.DialogFieldButton

class awsc.termui.dialog.DialogFieldButton(text, action, color=Color(Palette8Bit, 220, None), selected_color=Color(Palette8Bit, 0, 220))

A button on the dialog. While selected, hitting the enter key will execute the button’s callback function.

Attributes:
textstr

The text to display on the button.

colorawsc.termui.color.Color

The color of the button when not selected.

selected_colorawsc.termui.color.Color

The color of the button when selected.

actioncallable

The callback to call when the button is pressed. No parameters are passed to the callback.

Methods

input(inkey)

Input handler method for the field.

paint(x0, x1, y[, selected])

Paint callback for the field.

__init__(text, action, color=Color(Palette8Bit, 220, None), selected_color=Color(Palette8Bit, 0, 220))

Methods

__init__(text, action[, color, selected_color])

input(inkey)

Input handler method for the field.

paint(x0, x1, y[, selected])

Paint callback for the field.

Attributes

value

Read-only property for retrieving a generalized value of the field.