webgen v4.0.1 + Selectionlist sorted

This commit is contained in:
Wolfgang Nowak 2021-12-06 14:57:16 +01:00
parent 86827319db
commit 8ada48e062

View file

@ -52,9 +52,12 @@ def edit(headline):
# Select a topic for the new post or reedit an existing one # Select a topic for the new post or reedit an existing one
def selectfile(): def selectfile():
# Put all .md files in sourcefolder into list with a format, which dialog can eat. # Put all .md files in sourcefolder into list with a format, which dialog can eat.
zahl = 0
filelist = glob.glob("*.md")
filelist.sort()
tabelle = [] tabelle = []
for zeile in glob.glob("*.md"): zahl = 0
for zeile in filelist:
tabelle.insert(zahl, (str(zahl), zeile)) tabelle.insert(zahl, (str(zahl), zeile))
zahl += 1 zahl += 1