0

I have made a card matching game using python, and I need it so that when two cards are selected, they are shown for a few seconds and then the code executes to get rid of them or return them. I have tried using time.sleep, however this just freezes my program without displaying the second card. Are there any other modules or techniques I can use to make this happen?

2
  • please show us some code what you have tried so far. Commented Dec 26, 2013 at 16:29
  • I have over 800 lines of code, so that is not really a option. Commented Dec 26, 2013 at 19:06

1 Answer 1

2

Time.sleep suspends the program. Since events are still being pumped, there is nothing to process the event.

Take a look at this: How to create a timer using tkinter?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.