Pythonwin 132: Letters with Umlaut cause problems

Neil Hodgson neilh at scintilla.org
Mon Jul 17 08:39:13 EDT 2000


> And a major problem, the ^-key kills build 132 immediately, when using
> the German keyboard layout.

   This is a known problem. It occurs inside the line

   key = win32ui.TranslateVirtualKey(key)

   found in fire_key_event in Pythonwin\pywin\scintilla\bindings.py.

   Mark is aware of the problem in the win32ui code, but you might want to
try this short workaround while waiting for a fixed PythonWin. Just before
the "if event is None:" line inside fire_key_event insert this code.

  if key == 220:
   return 1

   This avoids calling win32ui.TranslateVirtualKey for the "^" key. More
tests may be needed for other accent characters or other locales.

   Neil





More information about the Python-list mailing list