From bd3ffd3ec1ab4baf1812e03c13f74fc56a155fe3 Mon Sep 17 00:00:00 2001 From: Daniel Beck Date: Thu, 24 Apr 2014 23:38:42 +0200 Subject: [PATCH] Make right-click work on Windows --- tkdu.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)