Lino Website

code changes

lino.forms.keyboard is evolving

Saturday, 27. May 2006 17:54.

I started to make more consistent use of the lino.forms.keyboard module in my own code.

New testcase 82 extracts keycodes from wx. Removed MenuItem.accel. This is now done by Button.hotkey In wxtoolkit I had no better solution than to use an ugly trick: wxPython has different methods to handle hotkeys, depending on whether it is for a Button or for a MenuItem. MenuItems get automagically bound to their accelerator key if the label passed to wxMenu.Append(winId,label,doc) contains a TAB followed a key name... For buttons this is done using a wx.SetAcceleratorTable().

Copyright 2001-2007 Luc Saffre.
Generated 2007-06-07 16:22:44