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

Type AcceleratorEntry

object --+
         |
        AcceleratorEntry


A class used to define items in an wx.AcceleratorTable. wxPython programs can choose to use wx.AcceleratorEntry objects, but using a list of 3-tuple of integers (flags, keyCode, cmdID) usually works just as well. See __init__ for of the tuple values.


See Also:

wx.AcceleratorTable

Method Summary
AcceleratorEntry __init__(self, flags, keyCode, cmdID)
  __del__(self)
  __repr__(self)
int GetCommand(self)
Get the AcceleratorEntry's command ID.
int GetFlags(self)
Get the AcceleratorEntry's flags.
int GetKeyCode(self)
Get the AcceleratorEntry's keycode.
  Set(self, flags, keyCode, cmd)
(Re)set the attributes of a wx.AcceleratorEntry.

Method Details

__init__(self, flags=0, keyCode=0, cmdID=0)
(Constructor)

Construct a wx.AcceleratorEntry.
Parameters:
flags - A bitmask of wx.ACCEL_ALT, wx.ACCEL_SHIFT, wx.ACCEL_CTRL or wx.ACCEL_NORMAL used to specify which modifier keys are held down.
           (type=int)

keyCode - The keycode to be detected
           (type=int)

cmdID - The menu or control command ID to use for the accellerator event.
           (type=int)

Returns:
AcceleratorEntry
Overrides:
__builtin__.object.__init__

GetCommand(self)

Get the AcceleratorEntry's command ID.

Returns:
int

GetFlags(self)

Get the AcceleratorEntry's flags.

Returns:
int

GetKeyCode(self)

Get the AcceleratorEntry's keycode.

Returns:
int

Set(self, flags, keyCode, cmd)

(Re)set the attributes of a wx.AcceleratorEntry. :see __init__

Parameters:
flags
           (type=int)

keyCode
           (type=int)

cmd
           (type=int)


Generated by Epydoc 2.1.20050511.rpd on Sun Mar 26 10:03:52 2006 http://epydoc.sf.net