webgen v4.0.1 + Selectionlist sorted
This commit is contained in:
parent
86827319db
commit
8ada48e062
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue