MiRCARTToolText.py: fix non-US ASCII character handling.

This commit is contained in:
Lucio Andrés Illanes Albornoz 2018-01-10 04:31:20 +01:00
parent f9f910160f
commit 12027bc6b5

View File

@ -23,7 +23,7 @@
#
from MiRCARTTool import MiRCARTTool
import string, wx
import wx
class MiRCARTToolText(MiRCARTTool):
"""XXX"""
@ -36,8 +36,6 @@ class MiRCARTToolText(MiRCARTTool):
if keyModifiers != wx.MOD_NONE \
and keyModifiers != wx.MOD_SHIFT:
return True
elif not keyChar in string.printable:
return True
else:
if self.textColours == None:
self.textColours = brushColours.copy()