hi,
can someone help me fill my TreeView with actual directory.
my [working as is ] code:
treestore is (gtk.Pixbuf(), actual_file_or_dir(str),
full_path(str))
def get_file_list(iter, dir, subdirs):
""" fill my file treestore """
for file in os.listdir(dir):
actual_file = os.path.join(dir, file)
if os.path.isfile(actual_file):
file_store.append(iter, [None, file, None])
elif os.path.isdir(actual_file) and subdirs:
iter = file_store.append(iter, [None, file, None])
get_file_list(iter, actual_file, subdirs)
self.get_file_list(None, "/home/martin/Develop", True)
thanks a lot
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/