mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Merge with 3.4 Issue#16233
This commit is contained in:
commit
6b541de73d
1 changed files with 6 additions and 7 deletions
|
@ -689,16 +689,15 @@ class EditorWindow(object):
|
||||||
self.flist.open(file_path)
|
self.flist.open(file_path)
|
||||||
else:
|
else:
|
||||||
self.io.loadfile(file_path)
|
self.io.loadfile(file_path)
|
||||||
|
return file_path
|
||||||
|
|
||||||
def open_class_browser(self, event=None):
|
def open_class_browser(self, event=None):
|
||||||
filename = self.io.filename
|
filename = self.io.filename
|
||||||
if not filename:
|
if not (self.__class__.__name__ == 'PyShellEditorWindow'
|
||||||
tkMessageBox.showerror(
|
and filename):
|
||||||
"No filename",
|
filename = self.open_module()
|
||||||
"This buffer has no associated filename",
|
if filename is None:
|
||||||
master=self.text)
|
return
|
||||||
self.text.focus_set()
|
|
||||||
return None
|
|
||||||
head, tail = os.path.split(filename)
|
head, tail = os.path.split(filename)
|
||||||
base, ext = os.path.splitext(tail)
|
base, ext = os.path.splitext(tail)
|
||||||
from idlelib import ClassBrowser
|
from idlelib import ClassBrowser
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue