diff options
author | jgranado <jgranado> | 2007-08-17 15:04:07 +0000 |
---|---|---|
committer | jgranado <jgranado> | 2007-08-17 15:04:07 +0000 |
commit | eead4989d515ce01e0504287dc391c7937e87ff0 (patch) | |
tree | 87489eb59cee69ec54fa8c4c6ade0cd3ca93cb51 /iw | |
parent | 70b7adb020841583ee06e85bb5f14403827fbc5d (diff) | |
download | anaconda-eead4989d515ce01e0504287dc391c7937e87ff0.tar.gz anaconda-eead4989d515ce01e0504287dc391c7937e87ff0.tar.xz anaconda-eead4989d515ce01e0504287dc391c7937e87ff0.zip |
* iw/network_gui.py: Call append_row function with extra tooltip
argument (#125312)
* iw/checklist.py: Append_row function with argument that defines
tooltip for each row.
Diffstat (limited to 'iw')
-rw-r--r-- | iw/checklist.py | 6 | ||||
-rw-r--r-- | iw/network_gui.py | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/iw/checklist.py b/iw/checklist.py index 6e0dcfcdc..e25e788e4 100644 --- a/iw/checklist.py +++ b/iw/checklist.py @@ -67,10 +67,11 @@ class CheckList (gtk.TreeView): # iterate over them all self.num_rows = 0 - def append_row (self, textList, init_value): + def append_row (self, textList, init_value, tooltipText = None): """Add a row to the list. text: text to display in the row - init_value: initial state of the indicator""" + init_value: initial state of the indicator + tooltipText: the text that will appear when the mouse is over the row.""" iter = self.store.append(None) self.store.set_value(iter, 0, init_value) @@ -82,6 +83,7 @@ class CheckList (gtk.TreeView): i = i + 1 self.num_rows = self.num_rows + 1 + self.props.tooltip_markup = tooltipText def toggled_item(self, data, row): diff --git a/iw/network_gui.py b/iw/network_gui.py index 7dc39207c..80e05cf41 100644 --- a/iw/network_gui.py +++ b/iw/network_gui.py @@ -382,7 +382,8 @@ class NetworkWindow(InstallWindow): ipv4 = self.createIPV4Repr(self.devices[device]) ipv6 = self.createIPV6Repr(self.devices[device]) - self.ethdevices.append_row((device, ipv4, ipv6), active) + devdesc = "%s - %s" % (self.devices[device].info["HWADDR"],self.devices[device].info["DESC"]) + self.ethdevices.append_row((device, ipv4, ipv6), active, tooltipText=devdesc) num += 1 |