ID = wx.NewId()
self.SetAcceleratorTable(wx.AcceleratorTable([(wx.ACCEL_ALT, ord(u'A'),
ID)]))
wx.EVT_MENU(self, ID, self.SaveProduct)
1: I now want an easy way to underline the chosen accelerator key in the
text on my button (the menue-way of using& does not work)
What platform are you on? If the platform supports it then using & should automatically make the accelerator as well as showing the underline. Note that if you are on Windows then you may have to press the alt key before the underline is made visible, depending on Windows version and system options.
2: Is there a methos to destroy the accelerator table again? (If I
disable the butn I also want my accelerator to be "disabled")
I'm not sure but it may work to just set a new accelerator table that does not have an item for the accelerator you want to disable.