summaryrefslogtreecommitdiffstats
path: root/Tools/idle/SearchBinding.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-12 16:07:27 (GMT)
committerGuido van Rossum <guido@python.org>1998-10-12 16:07:27 (GMT)
commit69ef7d6220f25b676f0db4bca9058d634ccf642f (patch)
tree0d3b40a0c826188c0df6094c32c5db6e23968c04 /Tools/idle/SearchBinding.py
parent06884363055a9d45daa1e5924aadba442e3d0a40 (diff)
downloadcpython-69ef7d6220f25b676f0db4bca9058d634ccf642f.zip
cpython-69ef7d6220f25b676f0db4bca9058d634ccf642f.tar.gz
cpython-69ef7d6220f25b676f0db4bca9058d634ccf642f.tar.bz2
Add parent argument to 'to to line number' dialog box.
Diffstat (limited to 'Tools/idle/SearchBinding.py')
-rw-r--r--Tools/idle/SearchBinding.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/idle/SearchBinding.py b/Tools/idle/SearchBinding.py
index 6abe5e0..392d205 100644
--- a/Tools/idle/SearchBinding.py
+++ b/Tools/idle/SearchBinding.py
@@ -74,7 +74,8 @@ class SearchBinding:
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: