Mar-02-2019, 10:07 PM
(This post was last modified: Mar-02-2019, 10:15 PM by purpleicetwice.)
(Mar-02-2019, 09:46 PM)woooee Wrote: This code will always ask the same question, i.e. the last question found, so it appears that it is not working because it puts up the same question. Add a print statement to the function to prove this to yourself.for question in questions: if question.difficulty == newDifficulty: newQuestion = question
I got it to work omg!! I put a print statement after
screen1.after_cancel(after_id)
The timer was being cancelled as soon as the button was created. Now the .after_cancel() is at the start of nextQuestion. Thanks for the help :D