b.u.t._ChooseUI(object) : class documentation

Part of bzrlib.ui.text View In Hierarchy

Helper class for choose implementation.
Method __init__ Undocumented
Method interact Keep asking the user until a valid choice is made.
Method _setup_mode Setup input mode (line-based, char-based) and echo-back.
Method _build_alternatives Parse choices string.
Method _getline Undocumented
Method _getchar Undocumented
def __init__(self, ui, msg, choices, default):
Undocumented
def _setup_mode(self):
Setup input mode (line-based, char-based) and echo-back.

Line-based input is used if the BZR_TEXTUI_INPUT environment variable is set to 'line-based', or if there is no controlling terminal.

def _build_alternatives(self, msg, choices, default):
Parse choices string.

Setup final prompt and the lists of choices and associated shortcuts.

def _getline(self):
Undocumented
def _getchar(self):
Undocumented
def interact(self):
Keep asking the user until a valid choice is made.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.