I would like to set the path of the directory and it searches for that particular path and lists all the files in it.
For Examples, I need to set path of the directory A = C:\Users\Downloads, B = C:\Users\Documents, C = C:\Users\Desktop in the code. And when A is selected it needs to load the above specified directory and list all the files in listbox.
How to set the directory for each elements(A,B,C..) ----> I tried using wx.DirDialog but it always loads the last selected or default directory.
When any element is selected it should load the specified directory in the code and lists the files.
defaultPathparam.