[wxPython-users] Re: changes in keycodes between 2.6 and 2.8

jmf jfauth at bluewin.ch
Fri Dec 29 09:23:26 PST 2006


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




More information about the wxpython-users mailing list