I am making a splash screen for a program I'm involved in and I am currently stuck on finding a way for the window to close after a few seconds. I've tried using sleep to delay the hiding of a window. Though it only delays the closing of the window only when the standard windows close button is pressed. Any other way of approaching this problem?