Start/pause pygame via tkinter button in the same window Start/pause pygame via tkinter button in the same window tkinter tkinter

Start/pause pygame via tkinter button in the same window


Tkinter + Pygame don't work well together sadly, usually due to conflicts between their graphics libraries and how one program sleeps when the other is active.

I would personally recommend removing tkinter from your project and building a button class through pygame.sprite.Sprite(), which can then be used in the same way a tkinter button would. You can read the documentation on that Here.