Retrieve wx.AcceleratorTable entries

Hi All,

    it appears to me there is no obvious way to retrieve the entries
of a wx.AcceleratorTable once it has been set. I mean, I can set a
wx.AcceleratorTable like this:

aTable = wx.AcceleratorTable([(wx.ACCEL_ALT, ord('X'), exitID),
                              (wx.ACCEL_CTRL, ord('H'), helpID),
                              (wx.ACCEL_CTRL, ord('F'), findID),
                              (wx.ACCEL_NORMAL, wx.WXK_F3, findnextID)
                              ])

self.SetAcceleratorTable(aTable)

But then there is no "GetEntries" or "GetEntry(index)" method in
wx.AcceleratorTable to get that table back from it. Am I missing
something? It appears to me some ports of wxWidgets do have access to
that information:

https://svn.zib.de/lenne3d/lib/wxwidgets/2.9.0/src/motif/accel.cpp

But there is nothing specific I can find. I imagine that is not
possible, am I correct?

Thank you for your suggestions.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

Yes. This is something I've wondered about in the past too. It seems like there should be a way to get the accel table and/or its items, but there isn't.

···

On 2/28/12 8:16 AM, Andrea Gavana wrote:

Hi All,

     it appears to me there is no obvious way to retrieve the entries
of a wx.AcceleratorTable once it has been set. I mean, I can set a
wx.AcceleratorTable like this:

aTable = wx.AcceleratorTable([(wx.ACCEL_ALT, ord('X'), exitID),
                               (wx.ACCEL_CTRL, ord('H'), helpID),
                               (wx.ACCEL_CTRL, ord('F'), findID),
                               (wx.ACCEL_NORMAL, wx.WXK_F3, findnextID)
                               ])

self.SetAcceleratorTable(aTable)

But then there is no "GetEntries" or "GetEntry(index)" method in
wx.AcceleratorTable to get that table back from it. Am I missing
something? It appears to me some ports of wxWidgets do have access to
that information:

https://svn.zib.de/lenne3d/lib/wxwidgets/2.9.0/src/motif/accel.cpp

But there is nothing specific I can find. I imagine that is not
possible, am I correct?

--
Robin Dunn
Software Craftsman