|
|
|
@ -6,6 +6,8 @@ import subprocess
|
|
|
|
import sys
|
|
|
|
import sys
|
|
|
|
from time import sleep
|
|
|
|
from time import sleep
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Configuration
|
|
|
|
|
|
|
|
|
|
|
|
text_closed_pictures = "Gehe zurück ..."
|
|
|
|
text_closed_pictures = "Gehe zurück ..."
|
|
|
|
text_load_pictures = "Bilder werden geladen ..."
|
|
|
|
text_load_pictures = "Bilder werden geladen ..."
|
|
|
|
text_no_pictures_found = "Hier sind leider noch keine Bilder drinnen."
|
|
|
|
text_no_pictures_found = "Hier sind leider noch keine Bilder drinnen."
|
|
|
|
@ -20,6 +22,8 @@ binding_accept = [ord('l'), ord(' '), ord('\n')]
|
|
|
|
binding_back = [ord('h'), ord('q'), curses.KEY_BACKSPACE]
|
|
|
|
binding_back = [ord('h'), ord('q'), curses.KEY_BACKSPACE]
|
|
|
|
binding_exit = [ord('Q')]
|
|
|
|
binding_exit = [ord('Q')]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Code
|
|
|
|
|
|
|
|
|
|
|
|
def stretch(text, length, char = ' '):
|
|
|
|
def stretch(text, length, char = ' '):
|
|
|
|
missing = length - len(text)
|
|
|
|
missing = length - len(text)
|
|
|
|
if 0 < missing:
|
|
|
|
if 0 < missing:
|
|
|
|
|