Package Pmv :: Module controlPanelCommands :: Class KeySelectable
[hide private]
[frames] | no frames]

Class KeySelectable

source code

Known Subclasses:
TreeViewWithCheckbuttons

Adds the ability to use keystrokes to quickly select items in a list. root has to be a widget supporting .bind .after

Instance Methods [hide private]
  __init__(self, root)
  timeOut(self, event=None)
resets self.matchCharIndex to 0, called after a short period of time if no new character has been typed
  keyUp_cb(self, event=None)
  key_cb(self, event=None)
  match(self, name)
has to return None if no match or an object that matches
  selectItem(self, item)
do what has to be done to show what matches the typed string

Method Details [hide private]

__init__(self, root)
(Constructor)

source code 
None

timeOut(self, event=None)

source code 
resets self.matchCharIndex to 0, called after a short period of time if no new character has been typed

keyUp_cb(self, event=None)

source code 
None

key_cb(self, event=None)

source code 
None

match(self, name)

source code 
has to return None if no match or an object that matches

selectItem(self, item)

source code 
do what has to be done to show what matches the typed string