For a project I need to do, I code a Bomberman. I'm working with the software Pyzo, in Python language, and with Tkinter. The problem I have is that I need to a timer for the bomb, for example, I put a bomb and it exploded 3 seconds after. But I have tested with many different things like .after; time module (time.sleep), a loop. The consequence is always the same, the windows freezes and I can't move anymore, but when the loop is finished, the screen is refreshed and players are at new positions.
How can I do a proper timer to permit my bombs to explode after 3 seconds ? Thank you!