summaryrefslogtreecommitdiff
path: root/fs/browsewin.py
diff options
context:
space:
mode:
authorwillmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f>2008-07-29 11:52:51 +0000
committerwillmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f>2008-07-29 11:52:51 +0000
commit8eb70a7f1385675c1809b5c977aae1d5b8fd334c (patch)
tree6b2173463b06ff725f67d8d60e2986d434bec154 /fs/browsewin.py
parent47f4b068a06d91a3bb0c6969a6cf224b41448209 (diff)
downloadpyfilesystem-8eb70a7f1385675c1809b5c977aae1d5b8fd334c.tar.gz
Added desc method to filesystems that display debugging information regarding file / dir location
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@20 67cdc799-7952-0410-af00-57a81ceafa0f
Diffstat (limited to 'fs/browsewin.py')
-rw-r--r--fs/browsewin.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/browsewin.py b/fs/browsewin.py
index 952cc28..620bf39 100644
--- a/fs/browsewin.py
+++ b/fs/browsewin.py
@@ -11,7 +11,7 @@ class BrowseFrame(wx.Frame):
def __init__(self, fs):
- wx.Frame.__init__(self, None)
+ wx.Frame.__init__(self, None, size=(1000, 600))
self.fs = fs
self.SetTitle("FS Browser - "+str(fs))
@@ -20,6 +20,7 @@ class BrowseFrame(wx.Frame):
self.tree.AddColumn("FS", 300)
self.tree.AddColumn("Size", 150)
self.tree.AddColumn("Created", 250)
+ self.tree.AddColumn("Description", 250)
self.root_id = self.tree.AddRoot('root', data=wx.TreeItemData( {'path':"/", 'expanded':False} ))
rid = self.tree.GetItemData(self.root_id)
@@ -98,6 +99,8 @@ class BrowseFrame(wx.Frame):
self.tree.SetItemText(new_item, ct.ctime(), 2)
else:
self.tree.SetItemText(new_item, 'unknown', 2)
+
+ self.tree.SetItemText(new_item, self.fs.desc(new_path), 3)
item_data['expanded'] = True
self.tree.Expand(item_id)