From b0c561dbbce4dc74b16f13ce24d36c6b01ade3c4 Mon Sep 17 00:00:00 2001 From: Nick Date: Tue, 22 Feb 2011 00:09:27 +0100 Subject: [PATCH] add add_checked_input --- deluge/ui/console/modes/input_popup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deluge/ui/console/modes/input_popup.py b/deluge/ui/console/modes/input_popup.py index b59c914cd..183d33d95 100644 --- a/deluge/ui/console/modes/input_popup.py +++ b/deluge/ui/console/modes/input_popup.py @@ -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