Fill a ComboBox with a file hierarchy
Helper last edited by
On 19/09/2014 at 05:56, xxxxxxxx wrote:
I'm creating a dynamic dialog that contains a ComboBox gadget.
I want to fill it (with AddChild) with the contents of a folder.
I can do it easily with the filenames returned by os.listdir
But only if there aren't any subfolders in the folder.
What I wanted was to be able to create Childs and SubChilds in the ComboBox correspondend to the folders, subfolders and files inside a folder.
I believe it is done with os.walk but, how can I fill the ComboBox hierarchy with the it?