[node-patches] Change in ovirt-node[master]: setup: Fix network page alignment
fabiand at fedoraproject.org
fabiand at fedoraproject.org
Mon Mar 11 14:00:16 UTC 2013
Fabian Deutsch has uploaded a new change for review.
Change subject: setup: Fix network page alignment
......................................................................
setup: Fix network page alignment
The available NICs on the network page were wrapped into a new line in
the smallest (80x24) window size.
Change-Id: Icc235e89000f59bb27f3667b9bfcbcfb92116223
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/tui/src/ovirt/node/setup/network_page.py
M scripts/tui/src/ovirt/node/ui/urwid_builder.py
2 files changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/33/12933/1
diff --git a/scripts/tui/src/ovirt/node/setup/network_page.py b/scripts/tui/src/ovirt/node/setup/network_page.py
index 29a8074..363584c 100644
--- a/scripts/tui/src/ovirt/node/setup/network_page.py
+++ b/scripts/tui/src/ovirt/node/setup/network_page.py
@@ -109,7 +109,7 @@
ui.Entry("ntp[1]", "NTP Server 2:"),
ui.Divider("divider[2]"),
ui.Table("nics", "Available System NICs",
- "Device Status Model MAC Address",
+ "Device Status Model MAC Address",
self._get_nics()),
ui.Button("button.ping", "Ping")
]
@@ -127,8 +127,8 @@
if first_nic is None:
first_nic = name
bootproto = "Configured" if nic["bootproto"] else "Unconfigured"
- description = " ".join([justify(nic["name"], 8),
- justify(bootproto, 14),
+ description = " ".join([justify(nic["name"], 7),
+ justify(bootproto, 13),
justify(nic["vendor"], 14),
justify(nic["hwaddr"], 17)
])
diff --git a/scripts/tui/src/ovirt/node/ui/urwid_builder.py b/scripts/tui/src/ovirt/node/ui/urwid_builder.py
index 5edb125..2d6ad54 100644
--- a/scripts/tui/src/ovirt/node/ui/urwid_builder.py
+++ b/scripts/tui/src/ovirt/node/ui/urwid_builder.py
@@ -587,7 +587,7 @@
return self.__loop.screen.get_cols_rows()
def _min_size(self):
- return (80, 23)
+ return (80, 24)
def _check_min_size_cb(self):
size = self.size()
--
To view, visit http://gerrit.ovirt.org/12933
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icc235e89000f59bb27f3667b9bfcbcfb92116223
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