Make right-click work on Windows
This commit is contained in:
parent
eb684a6e49
commit
bd3ffd3ec1
3
tkdu.py
3
tkdu.py
@ -349,6 +349,9 @@ def doit(dir, files):
|
||||
t.bind("<Key-%d>" % i, lambda e, c=c, i=i: setdepth(e, c, i))
|
||||
c.bind("<Button-4>", lambda e: scroll(e, -1))
|
||||
c.bind("<Button-5>", lambda e: scroll(e, 1))
|
||||
if os.name == 'nt':
|
||||
c.bind("<Button-3>", ascend)
|
||||
else:
|
||||
c.bind("<Button-2>", ascend)
|
||||
c.tag_bind("all", "<Button-1>", descend)
|
||||
c.tag_bind("all", "<Enter>", schedule_tip)
|
||||
|
Loading…
Reference in New Issue
Block a user