Werner wrote:
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
···
----
or
>>> import wx
>>> s = 'wx.WXK_CONTROL'
>>> eval(s)
308
>>>
jmf