mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Change to <<open-module>>: always pop up the dialog, using the current
selection as the default value. This is easier to use habitually.
This commit is contained in:
parent
3f8ace9a0f
commit
852f35bbeb
1 changed files with 7 additions and 8 deletions
|
@ -411,11 +411,10 @@ class EditorWindow:
|
||||||
name = ""
|
name = ""
|
||||||
else:
|
else:
|
||||||
name = name.strip()
|
name = name.strip()
|
||||||
if not name:
|
|
||||||
name = tkSimpleDialog.askstring("Module",
|
name = tkSimpleDialog.askstring("Module",
|
||||||
"Enter the name of a Python module\n"
|
"Enter the name of a Python module\n"
|
||||||
"to search on sys.path and open:",
|
"to search on sys.path and open:",
|
||||||
parent=self.text)
|
parent=self.text, initialvalue=name)
|
||||||
if name:
|
if name:
|
||||||
name = name.strip()
|
name = name.strip()
|
||||||
if not name:
|
if not name:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue