From c6b7f6636c962fa60394cb8582c4ea438dabf2fe Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Mon, 26 Oct 2020 13:49:35 +0100 Subject: [PATCH] client: Added comments separating Configuration / Code --- playbook/templates/client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playbook/templates/client.py b/playbook/templates/client.py index 958a866..bbb6115 100755 --- a/playbook/templates/client.py +++ b/playbook/templates/client.py @@ -6,6 +6,8 @@ import subprocess import sys from time import sleep +# Configuration + text_closed_pictures = "Gehe zurück ..." text_load_pictures = "Bilder werden geladen ..." 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_exit = [ord('Q')] +# Code + def stretch(text, length, char = ' '): missing = length - len(text) if 0 < missing: