mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
[3.6] bpo-8231: Call idlelib.IdleConf.GetUserCfgDir only once. (GH-2629) (#2631)
(cherry picked from commit 223c7e7
)
This commit is contained in:
parent
9d8abf31c4
commit
552f26680d
4 changed files with 8 additions and 7 deletions
|
@ -103,8 +103,8 @@ class EditorWindow(object):
|
|||
self.tkinter_vars = {} # keys: Tkinter event names
|
||||
# values: Tkinter variable instances
|
||||
self.top.instance_dict = {}
|
||||
self.recent_files_path = os.path.join(idleConf.GetUserCfgDir(),
|
||||
'recent-files.lst')
|
||||
self.recent_files_path = os.path.join(
|
||||
idleConf.userdir, 'recent-files.lst')
|
||||
self.text_frame = text_frame = Frame(top)
|
||||
self.vbar = vbar = Scrollbar(text_frame, name='vbar')
|
||||
self.width = idleConf.GetOption('main', 'EditorWindow',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue