Add parent argument to 'to to line number' dialog box.

This commit is contained in:
Guido van Rossum 1998-10-12 16:07:27 +00:00
parent 0688436305
commit 69ef7d6220
1 changed files with 2 additions and 1 deletions

View File

@ -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: