A FATHER of two had lost his temper and assaulted his seven-year-old son after the boy soiled his pants, Toowoomba Magistrates Court heard.

Police and the Department of Child Safety were called when the boy was treated at Toowoomba Hospital on the afternoon of October 9 last year for facial injuries.

The lad had swelling and bruising to his face and a scratch above his left eye, police prosecutor Senior Constable Alister Windsor told the court.

Asked what had happened, the boy said he had been playing when he soiled his pants.

When he went inside and told his parents, his father had become angry and picked him up by the shirt, dropping him onto bathroom tiles and then slapping him in the face with an open hand as he sat on the toilet.

The boy's father, who is not named to protect the identity of the child, pleaded guilty to a charge of assault occasioning bodily harm.

His solicitor Yassar Khan told the court his client had no previous criminal history at all and suffered from depression and anxiety for which he was medicated.

Since the incident, his client had been receiving psychological counselling, he said.

Because of the incident, the defendant had been living away from his family.

Magistrate Bruce Schemioneck said in a letter from the defendant's wife that was handed to the court she had written of how the children missed their father.

Accepting it was his first time before the court and that he was remorseful and continuing to undergo counselling, Mr Schemioneck ordered the conviction not be recorded and placed the man on a 12-month good behaviour bond.