diff options
author | Daniel Francis <francis@sugarlabs.org> | 2012-11-16 16:12:12 (GMT) |
---|---|---|
committer | Daniel Francis <francis@sugarlabs.org> | 2012-11-16 17:57:33 (GMT) |
commit | 195d30bfc05f6ede2f738733c79a43c1c650f778 (patch) | |
tree | 515f850c5625e114ee402a2adac98c804988163e | |
parent | 6d3c35a9368fdeef7f2bea22b401c6cd681ebe2d (diff) |
Select a function when removing one.
Signed-off-by: Daniel Francis <francis@sugarlabs.org>
-rw-r--r-- | functions.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/functions.py b/functions.py index 84423a7..2f6d47d 100644 --- a/functions.py +++ b/functions.py @@ -136,3 +136,5 @@ class FunctionsList(gtk.TreeView): for i in self.model: count += 1 i[1] = 'f%d(x) =' % count + _iter = self.model.get_iter(count-1) + self.selection.select_iter(_iter) |