开发者

Show directories and files using GtkTreeView

开发者 https://www.devze.com 2023-04-03 07:32 出处:网络
Having the following base code for walking a开发者_StackOverflow中文版 directory I would like to fill a GtkTreeView with the directory and files information to the user:

Having the following base code for walking a开发者_StackOverflow中文版 directory I would like to fill a GtkTreeView with the directory and files information to the user:

import os
for (path, dirs, files) in os.walk("/etc"):
    print path, dirs, files

C code is also welcome since it is easy to translate to pygtk.


Look at this question.

The question was funnily the other way around: how to get the directory structure which can then be filled into the TreeView.

0

精彩评论

暂无评论...
验证码 换一张
取 消