Quantcast
Channel: Kodi Community Forum - All Forums
Viewing all articles
Browse latest Browse all 84011

Dynamically Generated dialog.select

$
0
0
Hello,

My problem is as follows:
I have a generated file list that catches every file inside a directory, and I want to make those files as options for the user to select.
Here is some code:
Code:
        fileList = []
        for root,subFolders,files in os.walk(PLAYLIST_LIB):
            for file in files:
                fileList.append(file)

So I now have a fileList that has an unknown size, and I want to make every file found, an option for the user to choose from:

Code:
return = dialog.select("Files found:",what goes here?)

I have tried and failed a couple of alternatives, so I decided to try to get some help.
Hope someone knows a way Tongue

Thanks!

Viewing all articles
Browse latest Browse all 84011

Trending Articles