From aa4f89aa85956514921a03c7d19ee26963c25fd8 Mon Sep 17 00:00:00 2001 From: Wolfgang Nowak Date: Sat, 4 Dec 2021 01:38:54 +0100 Subject: [PATCH] webgen v4.0.1 + more comments --- webgen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webgen.py b/webgen.py index 4a93dd1..3e0c50a 100755 --- a/webgen.py +++ b/webgen.py @@ -35,7 +35,7 @@ def edit(headline): # Select a topic for the new post or reedit an existing one def selectfile(): - # Put files in sourcefolder into list + # Put all .md files in sourcefolder into list with a format, which dialog can eat. zahl = 0 tabelle = [] for zeile in glob.glob("*.md"): @@ -53,6 +53,7 @@ def selectfile(): cancel="Neuen Namen eingeben", ) + # Nothing has been choosen, so lets ask for a topic to generate a filename if ausgewaehlt[0] == "cancel": newtopic = d.inputbox("Ok, gib hier ein neues Thema an:", width=xwidth, height=ywidth, title="Ein Thema wählen:", cancel="Exit") if newtopic[0] == "cancel" or newtopic[1] == "":