Commit c666e40b authored by Guido van Rossum's avatar Guido van Rossum

Change to <<open-module>>: always pop up the dialog, using the current

selection as the default value.  This is easier to use habitually.
parent 3126d3b2
......@@ -411,11 +411,10 @@ class EditorWindow:
name = ""
else:
name = name.strip()
if not name:
name = tkSimpleDialog.askstring("Module",
"Enter the name of a Python module\n"
"to search on sys.path and open:",
parent=self.text)
parent=self.text, initialvalue=name)
if name:
name = name.strip()
if not name:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment