Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
07-22-2011, 10:33 PM #1
- Join Date
- Jan 2010
- Thanked 0 Times in 0 Posts
What is the correct sequence for bliting surfaces to the screen in pygame?
I am creating a simple mp3 player and my first task was to create a simple button that a user could press. I created a class called Button which handled this behavior and detects if a user has clicked it and then changes color. I am now trying to have a default text that the button displays and another string (pres_string) which will be displayed if the button is being pressed.
The only problem is my background surface seems to be in the wrong place and is drawing over any changes I have made.
Here is my code:
As you can see I've commented out the lines I described and tried it with basic variables in the main function just to test what was going wrong.
Thanks for any help.
(Feel free to change the title of the question, I wasn't sure what most accuratelydescribed my problem)