mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Use new file dialogs.
This commit is contained in:
parent
d9db3a6713
commit
b340acf9fd
16 changed files with 72 additions and 78 deletions
|
@ -4,6 +4,7 @@ the filename and a bit of context.
|
|||
|
||||
By Just, with a little glue by Jack"""
|
||||
|
||||
import EasyDialogs
|
||||
import macfs
|
||||
import re
|
||||
import os
|
||||
|
@ -43,9 +44,9 @@ def walk(top, recurse=1):
|
|||
pos = j
|
||||
|
||||
def main():
|
||||
fss, ok = macfs.GetDirectory()
|
||||
if ok:
|
||||
walk(fss.as_pathname())
|
||||
pathname = EasyDialogs.AskFolder()
|
||||
if pathname:
|
||||
walk(pathname)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue