How to list directory hierarchy in GtkTreeView widget?

前端 未结 1 1355
眼角桃花
眼角桃花 2021-01-03 15:20

I am trying to generate a hierarchical directory listing in pyGTK.

Currently, I have this following directory tree:

/root
    folderA
        - subdi         


        
相关标签:
1条回答
  • 2021-01-03 15:40

    About the performance, this is a FAQ. About your algorithm: when you reach subdirA piter points to subdirA, at the next iteration when you reach a.py piter still points to subdirA.

    As you said, use os.walk.

    0 讨论(0)
提交回复
热议问题