|
|
@ -15,7 +15,7 @@ binding_back = [ord('h'), ord('q'), curses.KEY_BACKSPACE]
|
|
|
|
binding_exit = [ord('Q')]
|
|
|
|
binding_exit = [ord('Q')]
|
|
|
|
|
|
|
|
|
|
|
|
def show_pictures(path):
|
|
|
|
def show_pictures(path):
|
|
|
|
files = sorted([str(f) for f in path.iterdir() if f.is_file() and f.suffix in ['.png', '.jpg', '.jpeg', '.gif']])
|
|
|
|
files = sorted([str(f) for f in path.iterdir() if f.is_file() and f.suffix.lower() in ['.png', '.jpg', '.jpeg', '.gif']])
|
|
|
|
files.insert(0, '/usr/bin/imvr')
|
|
|
|
files.insert(0, '/usr/bin/imvr')
|
|
|
|
subprocess.call(files)
|
|
|
|
subprocess.call(files)
|
|
|
|
return True
|
|
|
|
return True
|
|
|
|