hi guys, very quick question.
how can i add files from a glob command to a listbox?
this is the code. when i run it, i get an error saying the argument is of the wrong type. if i put a random string in fileList and comment out the append, then it displays fine.Code:fileList = [] os.chdir("c:\\Nokia\\Images") for file in glob.glob("*.jpg"): fileList.append(file) listbox = appuifw.Listbox(fileList, file_handler)
i thought glob gave out a list of filenames as strings, so why doesn't this work?
many thanks
docGroup14

Reply With Quote

