issues installing readine-1.12 on WinXP

Michele Simionato michele.simionato at gmail.com
Sun Mar 13 09:33:24 EST 2005


That line seems right. The function is

def char_to_keyinfo(char, control=False, meta=False, shift=False):
  vk = VkKeyScan(ord(char))
  if vk & 0xffff == 0xffff:
    print 'VkKeyScan("%s") = %x' % (char, vk)
    raise ValueError, 'bad key'
  if vk & 0x100:
    shift = True
  if vk & 0x200:
    control = True
  if vk & 0x400:
    meta = True
  return (control, meta, shift, vk & 0xff)

Maybe the problem is related to the fact that I am using the Italian
keyboard?




More information about the Python-list mailing list