diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-11-07 18:11:52 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-11-07 18:11:52 +0000 |
commit | c85171a80fd248d3e05977354c3b310ba677a6fb (patch) | |
tree | d87942df85d9ba84225625c01c656c17c652ac54 /textw | |
parent | 45249a3489182931d9b49917cc3a5fe2bd565209 (diff) | |
download | anaconda-c85171a80fd248d3e05977354c3b310ba677a6fb.tar.gz anaconda-c85171a80fd248d3e05977354c3b310ba677a6fb.tar.xz anaconda-c85171a80fd248d3e05977354c3b310ba677a6fb.zip |
2004-11-07 Jeremy Katz <katzj@redhat.com>
* iw/network_gui.py (NetworkWindow.editDevice): Add hardware
address as another way to figure out which device is which (#131814)
* textw/network_text.py (NetworkDeviceWindow.runScreen): Likewise.
Diffstat (limited to 'textw')
-rw-r--r-- | textw/network_text.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/textw/network_text.py b/textw/network_text.py index 274a2f2e7..88050f6cf 100644 --- a/textw/network_text.py +++ b/textw/network_text.py @@ -77,13 +77,13 @@ class NetworkDeviceWindow: options.extend(wireopt) descr = dev.get("desc") - if descr is not None and len(descr) > 0: - toprows = 2 - else: + hwaddr = dev.get("hwaddr") + if descr is None or len(descr) == 0: descr = None - toprows = 1 + if hwaddr is None or len(hwaddr) == 0: + hwaddr = None - topgrid = Grid(1, toprows) + topgrid = Grid(1, 3) topgrid.setField(Label (_("Network Device: %s") %(dev.info['DEVICE'],)), @@ -94,6 +94,10 @@ class NetworkDeviceWindow: topgrid.setField(Label (_("Description: %s") % (descr[:70],)), 0, 1, padding = (0, 0, 0, 0), anchorLeft = 1, growx = 1) + if hwaddr is not None: + topgrid.setField(Label (_("Hardware Address: %s") %(hwaddr,)), + 0, 2, padding = (0, 0, 0, 0), anchorLeft = 1, + growx = 1) botgrid = Grid(2, 2+len(options)) self.dhcpCb = Checkbox(_("Configure using DHCP"), |