fix custom input error with tkMessageBox