Nov-15-2017, 01:52 PM
(This post was last modified: Nov-15-2017, 01:53 PM by Padalinkiller1.)
I am creating a quiz program in pygame, I have currently created my main menu which stores my background, buttons and mouse interaction in one class. However, am now attempting to create the quiz starting with maths.
I have successfully imported the class into another file, however, I cannot change the text in those buttons in the new file as these buttons will now hold my answers.and it does not appear to run any code after I import the class into the new file.
[1]: https://i.stack.imgur.com/3jd4h.png # This is the main class in my Main menu file
[1]: https://i.stack.imgur.com/kb5zP.png /This is what my tutor suggested but it has not worked and the text within the button remains the same.
Any help is appreciated
I have successfully imported the class into another file, however, I cannot change the text in those buttons in the new file as these buttons will now hold my answers.and it does not appear to run any code after I import the class into the new file.
[1]: https://i.stack.imgur.com/3jd4h.png # This is the main class in my Main menu file
[1]: https://i.stack.imgur.com/kb5zP.png /This is what my tutor suggested but it has not worked and the text within the button remains the same.
Any help is appreciated