After having the plane painted I noticed, on the way home, that the gear up light would not come on. After flying with the gear down for 3 minutes I decided to raise the gear and then pull the gear circuit breaker. Following this I was able to cruise at 150 knots. When I inspected the spring in the gear well I noticed that it had been painted. I removed the spring, sprayed paint remover on it and cleaned it. I then reinstalled the spring and the gear up light come on when I retracted the gear.