Feb-23-2018, 03:43 PM
Hi Team,
I am playing around with GenericDirCtrl and would like to know how I can set a custom directory as the root. For example, the directory tree on my PC looks something like this:
/ <-- standard root of the directory
/bin
/bin/whatever
/boot
/data
/data/projects
/data/projects/projA
/data/projects/projB
/dev
/etc
/etc/whatever
/home
/home/user1
...
When I create the GenericDirCtrl it will properly display the entire tree. What I want to achieve is that the control shows me this:
/projects <-- custom root
/projects/projA
/projects/projB
...as if the rest of the directory structure does not exist.
Would this be possible? I have spent quite a bit of time searching the internet, but cannot find what I am looking for. I came across this
https://stackoverflow.com/questions/3686...n-wxpython
and tried to recreate it, but I couldn't get it to work.
I appreciate your suggestions.
Thank you.
Marc.
I am playing around with GenericDirCtrl and would like to know how I can set a custom directory as the root. For example, the directory tree on my PC looks something like this:
/ <-- standard root of the directory
/bin
/bin/whatever
/boot
/data
/data/projects
/data/projects/projA
/data/projects/projB
/dev
/etc
/etc/whatever
/home
/home/user1
...
When I create the GenericDirCtrl it will properly display the entire tree. What I want to achieve is that the control shows me this:
/projects <-- custom root
/projects/projA
/projects/projB
...as if the rest of the directory structure does not exist.
Would this be possible? I have spent quite a bit of time searching the internet, but cannot find what I am looking for. I came across this
https://stackoverflow.com/questions/3686...n-wxpython
and tried to recreate it, but I couldn't get it to work.
I appreciate your suggestions.
Thank you.
Marc.