--- a/controls/FolderTree.py Mon Aug 14 22:30:41 2017 +0300
+++ b/controls/FolderTree.py Mon Aug 14 23:27:15 2017 +0300
@@ -30,6 +30,7 @@
DRIVE, FOLDER, FILE = range(3)
+
def sort_folder(x, y):
if x[1] == y[1]:
return cmp(x[0], y[0])
@@ -38,6 +39,7 @@
else:
return 1
+
def splitpath(path):
head, tail = os.path.split(path)
if head == "":
@@ -46,6 +48,7 @@
return splitpath(head)
return splitpath(head) + [tail]
+
class FolderTree(wx.Panel):
def __init__(self, parent, folder, filter=None, editable=True):