A husband on trial for his wife's murder stole hundreds of pounds from her to cover stock market losses, the High Court in Perth has heard.
Nabeel Khan, 44, said he took more than £600 from Dr Iffat Kamal while she was in India giving birth to their son.
Mr Khan has admitted strangling his wife at their home in Dundee but his culpable homicide plea was rejected.
Dr Kamal, 39, died in Ninewells Hospital, where she worked as a pathologist, in December last year.
Mr Khan told the court that he had taken the money from his wife's account in 2006 and had paid the cash back.
The former banking advisor said he had been spending between £100 and £200 a month from 2005 until late December chasing betting losses on the internet.
He told the jury that he had no issue with staying at home to look after his son and stepson while his wife was the main breadwinner.
He said: "I was proud of her that she was a professional. I was not resentful about it."
"I lost my self-control and I am deeply ashamed"
Mr Khan said he could remember everything which happened before and immediately after his fatal attack upon Dr Kamal, but insisted his mind was blank for the critical period.
However, when Advocate Depute Alan McKay asked if he had put his arms around his wife's neck, he replied: "I definitely did. I don't remember perfectly well. It was just like a flash that I had that I did that.
"After that the only recollection I have is that I was trying to revive my wife."
Mr McKay asked: "Why can you remember what happened after and before this event, but not during it"
Mr Khan replied: "I can't explain it."
"You strangled her," Mr McKay said.
Mr Khan replied: "That's correct sir."
Mr McKay said: "You put your arm around her neck and quite deliberately strangled her. It was a good old-fashioned loss of temper was it not"
Mr Khan said: "I never lost my temper this way in my life before sir. I lost my self-control and I am deeply ashamed."
Mr Khan denies murdering Dr Kamal by slapping her face, seizing her throat and compressing it until she was so severely injured she died at Ninewells Hospital from her injuries on 20 December.
The trial continues.