maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   How do I display directories in a user friendly way? (https://talk.maemo.org/showthread.php?t=44858)

demiurgus 2010-02-17 15:21

How do I display directories in a user friendly way?
 
I'm coding some Python for maemo and what I like to do is display a list of directories that I keep in a list of strings in a list like the one you find in a file chooser dialog, i.e. with icons and most important with the paths translated to what a user would expect, e.g. /home/user/MyDocs/.documents becomes [My Device]/Documents in correct translation.

I guess it involves a TreeView and a FileSystemModel in some way, but since I can't find any API docs I can't figure out how to make it work.

Grateful for any help.


All times are GMT. The time now is 17:56.

vBulletin® Version 3.8.8