summaryrefslogtreecommitdiffstats
path: root/textw/network_text.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2006-09-26 21:19:45 +0000
committerDavid Cantrell <dcantrell@redhat.com>2006-09-26 21:19:45 +0000
commit3ce208cdabd059dcb9bf6efe286ba3f5e6a579a8 (patch)
treeffabf5b21c23cc1f5637092ab2bb33ee4914a692 /textw/network_text.py
parent250c37a5e1eb25ff127c04e43ae77a759ccd5bee (diff)
downloadanaconda-3ce208cdabd059dcb9bf6efe286ba3f5e6a579a8.tar.gz
anaconda-3ce208cdabd059dcb9bf6efe286ba3f5e6a579a8.tar.xz
anaconda-3ce208cdabd059dcb9bf6efe286ba3f5e6a579a8.zip
* textw/network_text.py (NetworkDeviceWindow): First changes towards
making this screen look like the new iw one.
Diffstat (limited to 'textw/network_text.py')
-rw-r--r--textw/network_text.py47
1 files changed, 29 insertions, 18 deletions
diff --git a/textw/network_text.py b/textw/network_text.py
index 5cf6c1ed0..d76e3166a 100644
--- a/textw/network_text.py
+++ b/textw/network_text.py
@@ -3,8 +3,9 @@
#
# Jeremy Katz <katzj@redhat.com>
# Michael Fulbright <msf@redhat.com>
+# David Cantrell <dcantrell@redhat.com>
#
-# Copyright 2000-2003 Red Hat, Inc.
+# Copyright 2000-2006 Red Hat, Inc.
#
# This software may be freely redistributed under the terms of the GNU
# library public license.
@@ -87,40 +88,50 @@ class NetworkDeviceWindow:
if hwaddr is None or len(hwaddr) == 0:
hwaddr = None
- topgrid = Grid(1, 3)
-
- topgrid.setField(Label (_("Network Device: %s")
- %(dev.info['DEVICE'],)),
- 0, 0, padding = (0, 0, 0, 0), anchorLeft = 1,
- growx = 1)
+ topgrid = Grid(1, 2)
if descr is not None:
topgrid.setField(Label (_("Description: %s") % (descr[:70],)),
- 0, 1, padding = (0, 0, 0, 0), anchorLeft = 1,
+ 0, 0, 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,
+ 0, 1, padding = (0, 0, 0, 0), anchorLeft = 1,
growx = 1)
- botgrid = Grid(2, 2+len(options))
- self.dhcpCb = Checkbox(_("Configure using DHCP"),
- isOn = (boot == "dhcp"))
+ # Create options grid
+ botgrid = Grid(2, 4+len(options))
+ currow = 0
if not showonboot:
ypad = 1
else:
ypad = 0
- currow = 0
- botgrid.setField(self.dhcpCb, 0, currow, anchorLeft = 1, growx = 1,
- padding = (0, 0, 0, ypad))
+ # DHCP option
+ self.dhcpCb = Checkbox(_("Use dynamic IP configuration (DHCP)"),
+ isOn = (boot == "dhcp"))
+ botgrid.setField(self.dhcpCb, 0, currow, anchorLeft = 1, growx = 1,
+ padding = (0, 0, 0, ypad))
currow += 1
-
+
+ # Use IPv4 option
+ self.ipv4Cb = Checkbox(_("Enable IPv4 support"), net.useIPv4)
+ botgrid.setField(self.ipv4Cb, 0, currow, anchorLeft = 1, growx = 1,
+ padding = (0, 0, 0, ypad))
+ currow += 1
+
+ # Use IPv6 option
+ self.ipv6Cb = Checkbox(_("Enable IPv6 support"), net.useIPv6)
+ botgrid.setField(self.ipv6Cb, 0, currow, anchorLeft = 1, growx = 1,
+ padding = (0, 0, 0, ypad))
+ currow += 1
+
+ # Activate on boot option
self.onbootCb = Checkbox(_("Activate on boot"), isOn = onbootIsOn)
if showonboot:
- botgrid.setField(self.onbootCb, 0, currow, anchorLeft = 1, growx = 1,
- padding = (0, 0, 0, 1))
+ botgrid.setField(self.onbootCb, 0, currow, anchorLeft = 1,growx = 1,
+ padding = (0, 0, 0, 1))
currow += 1
row = currow