#NEWLINE# def __init__( self , acceptableChars = '0123456789+-' ) : #NEWLINE# #INDENT# wx . PyValidator . __init__ ( self ) #NEWLINE# self . Bind ( wx . EVT_CHAR , self . _OnChar ) #NEWLINE# self . acceptableChars = acceptableChars #NEWLINE# self . acceptableCodes = [ ord ( x ) for x in self . acceptableChars ] #NEWLINE# stdEditKeys = [ wx . WXK_RETURN , wx . WXK_NUMPAD_ENTER , wx . WXK_ESCAPE , wx . WXK_CANCEL , wx . WXK_TAB , wx . WXK_BACK , wx . WXK_DELETE , wx . WXK_HOME , wx . WXK_END , wx . WXK_LEFT , wx . WXK_RIGHT ] #NEWLINE# self . acceptableCodes . extend ( x )