client.py: Clear also for showing pictures

master
Felix Stupp 4 years ago
parent 066cfacf03
commit ed3e7268de
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -24,9 +24,9 @@ def show_select(win, path):
if not path.is_dir(): if not path.is_dir():
raise Exception("'" + str(path) + "' is not a directory!") raise Exception("'" + str(path) + "' is not a directory!")
dirs = sorted([d for d in path.iterdir() if d.is_dir()]) dirs = sorted([d for d in path.iterdir() if d.is_dir()])
win.clear()
if len(dirs) <= 0: if len(dirs) <= 0:
return show_pictures(path) return show_pictures(path)
win.clear()
sel = 0 sel = 0
while True: while True:
for y, d in enumerate(dirs): for y, d in enumerate(dirs):

Loading…
Cancel
Save