'Setup tree widget'

def setup(self, name_filters=['*.py', '*.pyw'], show_all=False):

    self.setup_view()
    self.set_name_filters(name_filters)
    self.show_all = show_all
    self.menu = QMenu(self)
    self.common_actions = self.setup_common_actions()
