Gerard Butler Out of Rehab, Back on the Party Scene

2/27/2012 4:50 AM PST

Just two days after leaving rehab at the Betty Ford Center, a refreshed and healthier looking Gerard Butler hit up the Vanity Fair Oscar Party in L.A. on Sunday.

Butler spent three weeks in treatment after realizing he was relying too heavily on prescription medication.

TMZ broke the story ... Butler began using pain meds to deal with the pain caused by the intense physical training regimen to get in shape for "300" ... and the problem became exacerbated after he injured himself in a surfing accident while filming "Of Men and Mavericks" back in December.