| |
---|
| | # Copyright (c) 2002 TundraWare Inc. All Rights Reserved. |
---|
| | |
---|
| | |
---|
| | PROGNAME = "twander" |
---|
| | RCSID = "$Id: twander.py,v 1.43 2002/11/12 01:07:03 tundra Exp $" |
---|
| | RCSID = "$Id: twander.py,v 1.44 2002/11/12 01:59:02 tundra Exp $" |
---|
| | VERSION = RCSID.split()[2] |
---|
| | |
---|
| | |
---|
| | #----------------------------------------------------------# |
---|
| |
---|
| | |
---|
| | # Bind handler for Left Arrow key |
---|
| | root.bind('<Left>', KeyLeft) |
---|
| | |
---|
| | # Bind handler for Up Arrow key |
---|
| | root.bind('<Up>', KeyUp) |
---|
| | |
---|
| | # Bind handler for Down Arrow key |
---|
| | root.bind('<Down>', KeyDwn) |
---|
| | |
---|
| | # Set up keystroke handler for application |
---|
| | # These will be checked against the command |
---|
| | # key definitions in the configuration file |
---|
| | root.bind('<KeyPress>', KeystrokeHandler) |
---|
| | |
---|
| | # Bind the space key for selection |
---|
| | root.bind('<space>', DirListHandler) |
---|
| | |
---|
| | self.DirList.focus() |
---|
| | |
---|
| | # End of class definition, 'twanderUI' |
---|
| | |
---|
| | |
---|
| |
---|
| | else: |
---|
| | pass |
---|
| | |
---|
| | # End of 'KeyLeft()' |
---|
| | |
---|
| | |
---|
| | ##### |
---|
| | # Event Handler For Down Arrow Key - Move Down One Selection |
---|
| | ##### |
---|
| | |
---|
| | def KeyDwn(event): |
---|
| | global INDEX |
---|
| | |
---|
| | pass |
---|
| | |
---|
| | # End of 'KeyDwn()' |
---|
| | |
---|
| | |
---|
| | ##### |
---|
| | # Event Handler For Up Arrow Key - Move Up One Selection |
---|
| | ##### |
---|
| | |
---|
| | def KeyUp(event): |
---|
| | global INDEX |
---|
| | |
---|
| | if int(INDEX[0]) > 0: |
---|
| | INDEX -= 1 |
---|
| | ProcessSelection() |
---|
| | |
---|
| | # End of 'KeyDwn()' |
---|
| | |
---|
| | |
---|
| | ##### |
---|
| | # Event Handler For Home Key - Go Back to Initial Directory |
---|
| |
---|
| | |