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.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
Return hash(x)...
  __new__(T, S, ...)
Return a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
Return str(x)...

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 Sat Jun 16 16:50:16 2007 http://epydoc.sf.net