webgen v4.0.1 + more comments

This commit is contained in:
Wolfgang Nowak 2021-12-04 01:38:54 +01:00
parent 4def38f66f
commit aa4f89aa85

View file

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