|
|
@ -26,9 +26,7 @@ def show_select(win, path):
|
|
|
|
dirs = sorted([d for d in path.iterdir() if d.is_dir()])
|
|
|
|
dirs = sorted([d for d in path.iterdir() if d.is_dir()])
|
|
|
|
if len(dirs) <= 0:
|
|
|
|
if len(dirs) <= 0:
|
|
|
|
return show_pictures(path)
|
|
|
|
return show_pictures(path)
|
|
|
|
def setup():
|
|
|
|
win.clear()
|
|
|
|
win.clear()
|
|
|
|
|
|
|
|
setup()
|
|
|
|
|
|
|
|
sel = 0
|
|
|
|
sel = 0
|
|
|
|
while True:
|
|
|
|
while True:
|
|
|
|
for y, d in enumerate(dirs):
|
|
|
|
for y, d in enumerate(dirs):
|
|
|
@ -41,7 +39,7 @@ def show_select(win, path):
|
|
|
|
elif c in binding_accept:
|
|
|
|
elif c in binding_accept:
|
|
|
|
if not show_select(win, dirs[sel]):
|
|
|
|
if not show_select(win, dirs[sel]):
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|
setup()
|
|
|
|
win.clear()
|
|
|
|
elif c in binding_back:
|
|
|
|
elif c in binding_back:
|
|
|
|
return True
|
|
|
|
return True
|
|
|
|
elif c in binding_exit:
|
|
|
|
elif c in binding_exit:
|
|
|
|