Package hsh :: Package curses_display :: Module view :: Class KeyInput
[hide private]
[frames] | no frames]

Class KeyInput

object --+
         |
        KeyInput

Represents a single key input from the user, which may consist of multiple keystrokes, such as Esc-M. Count arguments will be implemented in the future.

Instance Methods [hide private]
 
__init__(self, key, meta=False, num=1)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
ch(self)
Return the key value as a single character string, or raise an exception if it's not a character.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, key, meta=False, num=1)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)