Validate integers and decimal QlineEdit field

Is there any Python validation to called a method to validate integers and decimal