dabo Commit
Revision 6610
Date: 2011-05-28 07:59:21 -0700 (Sat, 28 May 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6610

Changed:
U   trunk/dabo/ui/uiwx/dTreeView.py

Log:
Added ability to associate a node with a file path.

Diff:
Modified: trunk/dabo/ui/uiwx/dTreeView.py
===================================================================
--- trunk/dabo/ui/uiwx/dTreeView.py     2011-05-28 12:07:17 UTC (rev 6609)
+++ trunk/dabo/ui/uiwx/dTreeView.py     2011-05-28 14:59:21 UTC (rev 6610)
@@ -24,6 +24,8 @@
                self.parent = parent
                # Nodes can have objects associated with them
                self._object = None
+               # Nodes can also be associated with a file path
+               self._filePath = None
                # Custom text to display as a tooltip
                self._toolTipText = None
                # Add minimal Dabo functionality
@@ -891,7 +893,7 @@
                                        return
                        self.setNodeImg(nd, "folder", "normal")
                        self.setNodeImg(nd, "folderopen", "expanded")
-                       nd.ToolTipText = currDir
+                       nd.ToolTipText = nd._filePath = currDir
                        acceptedNames = ignoredNames = None
                        if wildcard is not None:
                                acceptedNames = glob.glob(os.path.join(currDir, 
wildcard))
@@ -913,6 +915,7 @@
                                        if fullName in ignoredNames:
                                                continue
                                kid = nd.appendChild(f)
+                               kid._filePath = fullName
                                self.setNodeImg(kid, "file", "normal")
                                kid.ToolTipText = fullName
 



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to