[node-patches] Change in ovirt-node[master]: Allow styling of Entry

fabiand at fedoraproject.org fabiand at fedoraproject.org
Tue Dec 11 20:09:35 UTC 2012


Fabian Deutsch has uploaded a new change for review.

Change subject: Allow styling of Entry
......................................................................

Allow styling of Entry

Change-Id: I28ea322f67ed375eb85868035fe5dd847b6359a8
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/tui/src/ovirt/node/tui.py
M scripts/tui/src/ovirt/node/ui/widgets.py
2 files changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/96/9896/1

diff --git a/scripts/tui/src/ovirt/node/tui.py b/scripts/tui/src/ovirt/node/tui.py
index 65ecc6f..ff06a85 100644
--- a/scripts/tui/src/ovirt/node/tui.py
+++ b/scripts/tui/src/ovirt/node/tui.py
@@ -60,6 +60,7 @@
                ('main.menu.frame', 'light gray', ''),
                ('plugin.widget.entry', 'dark gray', ''),
                ('plugin.widget.entry.disabled', 'dark gray', 'light gray'),
+               ('plugin.widget.entry.label', 'bold', ''),
                ('plugin.widget.entry.frame', 'light gray', ''),
                ('plugin.widget.entry.frame.invalid', 'dark red', ''),
                ('plugin.widget.notice', 'light red', ''),
diff --git a/scripts/tui/src/ovirt/node/ui/widgets.py b/scripts/tui/src/ovirt/node/ui/widgets.py
index 83431fa..fb358f6 100644
--- a/scripts/tui/src/ovirt/node/ui/widgets.py
+++ b/scripts/tui/src/ovirt/node/ui/widgets.py
@@ -200,12 +200,15 @@
 
     def __init__(self, label, mask=None):
         self._label = urwid.Text("\n" + label + ":")
+        self._label_attrmap = urwid.AttrMap(self._label,
+                                            "plugin.widget.entry.label")
         self._edit = urwid.Edit(mask=mask)
         self._edit_attrmap = urwid.AttrMap(self._edit, "plugin.widget.entry")
         self._linebox = urwid.LineBox(self._edit_attrmap)
         self._linebox_attrmap = urwid.AttrMap(self._linebox,
                                               "plugin.widget.entry.frame")
-        self._columns = urwid.Columns([self._label, self._linebox_attrmap])
+        self._columns = urwid.Columns([self._label_attrmap,
+                                       self._linebox_attrmap])
 
         self._notice = urwid.Text("")
         self._notice_attrmap = urwid.AttrMap(self._notice,


--
To view, visit http://gerrit.ovirt.org/9896
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I28ea322f67ed375eb85868035fe5dd847b6359a8
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>



More information about the node-patches mailing list