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] == "":