예제 #1
0
    def __init__(self, parent, path, text):
        HeaderFrame.__init__(self, parent, text)
        self.root = parent
        self.tree = ttk.Treeview(self.sub_frame)

        ttk.Style().configure(".", font=('Helvetica', 12), foreground="")

        ysb = ttk.Scrollbar(self, orient='vertical', command=self.tree.yview)
        xsb = ttk.Scrollbar(self, orient='horizontal', command=self.tree.xview)
        self.tree.configure(yscroll=ysb.set, xscroll=xsb.set)
        self.tree.heading('#0', text=path, anchor='w')

        abspath = os.path.abspath(path)
        root_node = self.tree.insert('', 'end', text='Workspace', open=True)
        self.process_directory(root_node, abspath)

        self.tree.pack(fill='both', expand=1)
예제 #2
0
 def __init__(self, parent, root, text):
     ''' Constructor '''
     HeaderFrame.__init__(self, parent, text)
     self.parent = parent
     self.root = root
     self.init_gui()
예제 #3
0
 def __init__(self, parent, text):
     HeaderFrame.__init__(self, parent, text)
     self.root = parent
     self.init_gui()