diff --git a/tkdu.py b/tkdu.py index 06b142d..dcbec38 100755 --- a/tkdu.py +++ b/tkdu.py @@ -349,7 +349,10 @@ def doit(dir, files): t.bind("" % i, lambda e, c=c, i=i: setdepth(e, c, i)) c.bind("", lambda e: scroll(e, -1)) c.bind("", lambda e: scroll(e, 1)) - c.bind("", ascend) + if os.name == 'nt': + c.bind("", ascend) + else: + c.bind("", ascend) c.tag_bind("all", "", descend) c.tag_bind("all", "", schedule_tip) c.tag_bind("all", "", cancel_tip)