]> git.sesse.net Git - vlc/commitdiff
bindings/mediacontrol-python/vlcwrapper.py: make the tree() method return a string...
authorOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Tue, 18 Jul 2006 14:45:24 +0000 (14:45 +0000)
committerOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Tue, 18 Jul 2006 14:45:24 +0000 (14:45 +0000)
bindings/mediacontrol-python/vlcwrapper.py

index be67d3a72c08e08c80ac74df578aa02cba30ceb3..7f64a02aa2bbc16dc3ab859f55923ce87e0c19ee 100644 (file)
@@ -29,11 +29,11 @@ class VLCObject(object):
     def tree(self, prefix=" "):
         """Displays all children as a tree of VLCObject
        """
-        print prefix, self
+        res=prefix + str(self) + "\n"
         for i in self._o.children():
             t=VLCObject(i)
-            t.tree(prefix=prefix + " ")
-        return
+            res += t.tree(prefix=prefix + " ")
+        return res
 
     def __getattribute__(self, attr):
        """Converts attribute access to access to variables.