[wxPython-users] Re: changes in keycodes between 2.6 and 2.8
Werner F. Bruhin
werner.bruhin at free.fr
Fri Dec 29 08:26:53 PST 2006
Hi Franz,
Franz Steinhaeusler wrote:
> ...
>> Don't use the numbers. Use the wx.WXK_* constants that already exist.
>>
>>
>
> I know, this is not good, but I expected no change.
> The numbers are stored externally in a preferences file.
>
>
Why not store the string values in your preference files?
Then do something along these lines:
>>> import wx
>>> wx.WXK_CONTROL
308
>>> x = 'WXK_CONTROL'
>>> getattr(wx, x)
308
>>>
Werner
More information about the wxpython-users
mailing list