diff options
author | Cheryl Sabella <cheryl.sabella@gmail.com> | 2017-11-23 00:05:25 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2017-11-23 00:05:25 (GMT) |
commit | 20d48a44a54ed5e4a6df00e89ae27e3983128265 (patch) | |
tree | d3e8f1549f4964e84bebe727876267f48d1978f4 /Lib/idlelib/pathbrowser.py | |
parent | d4341109746aa15e1909e63b30b93b6133ffe401 (diff) | |
download | cpython-20d48a44a54ed5e4a6df00e89ae27e3983128265.zip cpython-20d48a44a54ed5e4a6df00e89ae27e3983128265.tar.gz cpython-20d48a44a54ed5e4a6df00e89ae27e3983128265.tar.bz2 |
bpo-32100: IDLE: Fix pathbrowser errors; improve tests. (#4484)
Patch mostly by Cheryl Sabella
Diffstat (limited to 'Lib/idlelib/pathbrowser.py')
-rw-r--r-- | Lib/idlelib/pathbrowser.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/idlelib/pathbrowser.py b/Lib/idlelib/pathbrowser.py index c0aa2a1..c61ae0f 100644 --- a/Lib/idlelib/pathbrowser.py +++ b/Lib/idlelib/pathbrowser.py @@ -9,13 +9,14 @@ from idlelib.tree import TreeItem class PathBrowser(ModuleBrowser): - def __init__(self, flist, *, _htest=False, _utest=False): + def __init__(self, master, *, _htest=False, _utest=False): """ _htest - bool, change box location when running htest """ + self.master = master self._htest = _htest self._utest = _utest - self.init(flist) + self.init() def settitle(self): "Set window titles." @@ -100,8 +101,7 @@ class DirBrowserTreeItem(TreeItem): def _path_browser(parent): # htest # - flist = PyShellFileList(parent) - PathBrowser(flist, _htest=True) + PathBrowser(parent, _htest=True) parent.mainloop() if __name__ == "__main__": |