

def __init__(self, *args, **kwargs):
    kwargs['selectmode'] = 'browse'
    self.normalizer = kwargs.pop('normalizer')
    self.root = kwargs.pop('root', None)
    Treeview.__init__(self, *args, **kwargs)
    self['columns'] = ('coverage',)
    self.column('coverage', width=50, anchor='center')
    self.heading('#0', text='File')
    self.heading('coverage', text='Cov')
    self.tag_configure('bad', foreground='red')
    self.tag_configure('poor', foreground='orange')
    self.tag_configure('ok', foreground='blue')
    self.tag_configure('good', foreground='cyan')
    self.tag_configure('perfect', foreground='green')
    self.tag_configure('directory', foreground='#999')
    self.tag_configure('non_code', foreground='gray')
    if self.root:
        os.path.walk(self.root, self._visitor, None)

dataset/ETHPy150Open pybee/duvet/duvet/widgets.py FileView.__init__/original