mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
bpo-32100: IDLE: Fix pathbrowser errors; improve tests. (#4484)
Patch mostly by Cheryl Sabella
This commit is contained in:
parent
d434110974
commit
20d48a44a5
6 changed files with 95 additions and 32 deletions
|
@ -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__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue