diff --git a/twander.py b/twander.py index 83b3d79..f6beaac 100755 --- a/twander.py +++ b/twander.py @@ -4,7 +4,7 @@ PROGNAME = "twander" -RCSID = "$Id: twander.py,v 1.38 2002/11/10 00:21:25 tundra Exp $" +RCSID = "$Id: twander.py,v 1.39 2002/11/10 19:21:46 tundra Exp $" VERSION = RCSID.split()[2] @@ -378,8 +378,8 @@ def DirListHandler(event): global ROOTDIR - - selected = UI.DirList.get(ACTIVE) + + selected = UI.DirList.get(UI.DirList.nearest(event.y)) # If selection is a directory, move there and list contents. # We examine this by checking the string for the directory @@ -498,7 +498,7 @@ LoadDirList() # Set up handler for double-clicks in list box -UI.DirList.bind('', DirListHandler) +UI.DirList.bind('', DirListHandler) # Run the program interface UIroot.mainloop()