diff options
author | Matt Wilson <msw@redhat.com> | 2002-07-18 04:20:41 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2002-07-18 04:20:41 +0000 |
commit | e335604bbd1d16908532a83f68c7b18742d3fc8e (patch) | |
tree | db9d0355a92d1f1c96aae2e206af1ead909748e0 /iw/mouse_gui.py | |
parent | d7ea4fdef8e40a025a828e621fccae366e318502 (diff) | |
download | anaconda-e335604bbd1d16908532a83f68c7b18742d3fc8e.tar.gz anaconda-e335604bbd1d16908532a83f68c7b18742d3fc8e.tar.xz anaconda-e335604bbd1d16908532a83f68c7b18742d3fc8e.zip |
new iter_next API
Diffstat (limited to 'iw/mouse_gui.py')
-rw-r--r-- | iw/mouse_gui.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/iw/mouse_gui.py b/iw/mouse_gui.py index 911f1d6af..ec53c0f74 100644 --- a/iw/mouse_gui.py +++ b/iw/mouse_gui.py @@ -144,9 +144,8 @@ class MouseWindow(InstallWindow): parent = None iter = self.mousestore.get_iter_first() - next = 1 # iterate over the list, looking for the current mouse selection - while next: + while iter: # if this is a parent node, get the first child and iter over them if self.mousestore.iter_has_child(iter): parent = iter @@ -168,11 +167,11 @@ class MouseWindow(InstallWindow): 0.5, 0.5) break # get the next row. - next = self.mousestore.iter_next(iter) + iter = self.mousestore.iter_next(iter) # if there isn't a next row and we had a parent, go to the node # after the parent we've just gotten the children of. - if not next and parent: - next = self.mousestore.iter_next(parent) + if not iter and parent: + parent = self.mousestore.iter_next(parent) iter = parent # set up the device list if we have a serial port |