[PATCH] Fix a minor display issue in TUI.
Samantha N. Bueno
sbueno+anaconda at redhat.com
Mon May 6 16:08:37 UTC 2013
Always set completed status to True in the checkbox widgets of the
spoke display, this way the key is always visible.
---
pyanaconda/ui/tui/spokes/__init__.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/ui/tui/spokes/__init__.py b/pyanaconda/ui/tui/spokes/__init__.py
index b770351..134e303 100644
--- a/pyanaconda/ui/tui/spokes/__init__.py
+++ b/pyanaconda/ui/tui/spokes/__init__.py
@@ -78,7 +78,9 @@ class TUISpoke(TUIObject, tui.Widget, Spoke):
key = "x"
completed = self.completed
- c = tui.CheckboxWidget(key = key, completed = completed,
+ # always set completed = True here; otherwise key value won't be
+ # displayed if completed (spoke value from above) is False
+ c = tui.CheckboxWidget(key = key, completed = True,
title = self.title, text = self.status)
c.render(width)
self.draw(c)
--
1.7.11.7
More information about the anaconda-patches
mailing list