From 008cb53a98681ed1be8a1d2f767ecf50fba585bb Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 6 Aug 2011 22:43:17 +0200 Subject: Cleanup and more pylint conformity --- gui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gui.py') diff --git a/gui.py b/gui.py index c95697b..571db55 100644 --- a/gui.py +++ b/gui.py @@ -464,9 +464,9 @@ class TreeViewTooltips(object): ''' as the pointer moves across the view, show a tooltip ''' - path = view.get_path_at_pos(int(event.x), int(event.y)) - if path: - path, col, x, y = path + path_at_pos = view.get_path_at_pos(int(event.x), int(event.y)) + if path_at_pos: + path, col, x, y = path_at_pos tooltip = self.get_tooltip(view, col, path) if tooltip: tooltip = str(tooltip).strip() -- cgit v1.3