Logo Search packages:      
Sourcecode: lfm version File versions  Download package

def lfm::actions::Tree::show_tree (   self,
  a = 0,
  z = -1 
)

show an ascii representation of the tree. Not used in lfm

Definition at line 1727 of file actions.py.

01727                                       :
        """show an ascii representation of the tree. Not used in lfm"""
        
        if z > len(self.tree) or z == -1:
            z = len(self.tree)
        for i in range(a, z):
            name, depth, fullname = self.tree[i]
            if fullname == self.path:
                name += ' <====='
            if name == os.sep:
                print ' ' + name
            else:
                print ' | ' * depth + ' +- ' + name


    # GUI functions
    def __init_curses(self, pos):


Generated by  Doxygen 1.6.0   Back to index