Ian Mallett wrote:

                keystring = event.unicode
                Message += str(keystring)

Be careful with that -- on the Mac at least, some keys
(the arrow keys, for example) have non-ascii chars in
the unicode attribute, which will cause a crash if you
pass them to str().

You may want to check whether ord(keystring) is in
the ascii range and ignore the key otherwise.

--
Greg

Reply via email to