add add_checked_input

This commit is contained in:
Nick 2011-02-22 00:09:27 +01:00
parent 1173f1c714
commit b0c561dbbc
1 changed files with 3 additions and 0 deletions

View File

@ -577,6 +577,9 @@ class InputPopup(Popup):
def add_select_input(self, message, name, opts, vals, default_index=0):
self.inputs.append(SelectInput(self.parent, message, name, opts, vals, default_index))
def add_checked_input(self, message, name, checked=False):
self.inputs.append(CheckedInput(self.parent,message,name,checked))
def _refresh_lines(self):
self._cursor_row = -1
self._cursor_col = -1