Package wx :: Class KeyEvent
[frames | no frames]

Type KeyEvent

object --+        
         |        
    Object --+    
             |    
         Event --+
                 |
                KeyEvent


Proxy of C++ KeyEvent class
Method Summary
KeyEvent __init__(self, keyType)
  __repr__(self)
bool AltDown(self)
bool CmdDown(self)
"Cmd" is a pseudo key which is the same as Control for PC and Unix platforms but the special "Apple" (a.k.a as "Command") key on Macs: it makes often sense to use it instead of, say, ControlDown because Cmd key is used for the same thing under Mac as Ctrl elsewhere.
bool ControlDown(self)
int GetKeyCode(self)
Point GetPosition(self)
Find the position of the event.
(x,y) GetPositionTuple()
Find the position of the event.
unsigned int GetRawKeyCode(self)
unsigned int GetRawKeyFlags(self)
int GetUniChar(self)
int GetUnicodeKey(self)
int GetX(self)
int GetY(self)
bool HasModifiers(self)
int KeyCode(self)
bool MetaDown(self)
bool ShiftDown(self)

Property Summary
  m_altDown
  m_controlDown
  m_keyCode
  m_metaDown
  m_rawCode
  m_rawFlags
  m_scanCode
  m_shiftDown
  m_x
  m_y

Method Details

CmdDown(self)

"Cmd" is a pseudo key which is the same as Control for PC and Unix platforms but the special "Apple" (a.k.a as "Command") key on Macs: it makes often sense to use it instead of, say, ControlDown because Cmd key is used for the same thing under Mac as Ctrl elsewhere. The Ctrl still exists, it's just not used for this purpose. So for non-Mac platforms this is the same as ControlDown and Macs this is the same as MetaDown.
Returns:
bool

GetPosition(self)

Find the position of the event.
Returns:
Point

GetPositionTuple()

Find the position of the event.
Returns:
(x,y)

Property Details

m_altDown

Get Method:
KeyEvent_m_altDown_get(...)
Set Method:
KeyEvent_m_altDown_set(...)

m_controlDown

Get Method:
KeyEvent_m_controlDown_get(...)
Set Method:
KeyEvent_m_controlDown_set(...)

m_keyCode

Get Method:
KeyEvent_m_keyCode_get(...)
Set Method:
KeyEvent_m_keyCode_set(...)

m_metaDown

Get Method:
KeyEvent_m_metaDown_get(...)
Set Method:
KeyEvent_m_metaDown_set(...)

m_rawCode

Get Method:
KeyEvent_m_rawCode_get(...)
Set Method:
KeyEvent_m_rawCode_set(...)

m_rawFlags

Get Method:
KeyEvent_m_rawFlags_get(...)
Set Method:
KeyEvent_m_rawFlags_set(...)

m_scanCode

Get Method:
KeyEvent_m_scanCode_get(...)
Set Method:
KeyEvent_m_scanCode_set(...)

m_shiftDown

Get Method:
KeyEvent_m_shiftDown_get(...)
Set Method:
KeyEvent_m_shiftDown_set(...)

m_x

Get Method:
KeyEvent_m_x_get(...)
Set Method:
KeyEvent_m_x_set(...)

m_y

Get Method:
KeyEvent_m_y_get(...)
Set Method:
KeyEvent_m_y_set(...)

Generated by Epydoc 2.1.20040428.rpd on Tue Apr 26 14:24:02 2005 http://epydoc.sf.net