I want to know can we validate a entry for string values only. Means you can't put any integer into the string. I know we can do similar one where we can disable entering the alphabetic values for a entry like this:
def only_numbers(char):
return char.isdigit()
validation = parent.register(only_numbers)
entry = Entry(parent, validate="key", validatecommand=(validation, '%S'))
but, is there any similar way to disable non integer or alphabetic values from entering.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…