mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 09:02:46 +00:00
85e405c1eb
See e.g. https://bugzilla.redhat.com/show_bug.cgi?id=894646 — without this patch, wicd-curses throws an AttributeError on startup. The patch is a cut-down version of the one added there by Pavel Zhukov.
22 lines
461 B
Diff
22 lines
461 B
Diff
--- a/curses/curses_misc.py
|
|
+++ a/curses/curses_misc.py
|
|
@@ -358,6 +358,19 @@ class ComboBox(urwid.WidgetWrap):
|
|
self.parent = None
|
|
self.ui = None
|
|
self.row = None
|
|
+
|
|
+ @property
|
|
+ def focus(self):
|
|
+ return self._focus
|
|
+
|
|
+ @focus.setter
|
|
+ def focus(self, index):
|
|
+ self._focus = index
|
|
+
|
|
+ @focus.deleter
|
|
+ def focus(self):
|
|
+ del self._focus
|
|
+
|
|
def set_list(self,list):
|
|
self.list = list
|