diff --git a/Tools/idle/SearchBinding.py b/Tools/idle/SearchBinding.py index 6abe5e0217a..392d2055716 100644 --- a/Tools/idle/SearchBinding.py +++ b/Tools/idle/SearchBinding.py @@ -74,7 +74,8 @@ def find_next_event(self, event): def goto_line_event(self, event): lineno = tkSimpleDialog.askinteger("Goto", - "Go to line number:") + "Go to line number:", + parent=self.text) if lineno is None: return "break" if lineno <= 0: