I am working on a GUI for motor control, for which i will be loading huge data initially. Hence i want to add a splash screen to it. But do i need to fix the time out duration of the splash screen a priory? I would like the splash screen to disappear 2 seconds after the whole loading is done. Please help.
Share
According to the docs here you can pass in the style
wxSPLASH_NO_TIMEOUTto prevent the splash screen from timing out automatically. You’d need to have something in your other code that triggered its OnClose handler when you were ready for it to go away.— Edited —
The style
wxSPLASH_NO_TIMEOUTis imported from wxPython._windows, which is deprecated. It still works on my system in python 2.6 and 2.7, but you actually probably want to use this:Then, in the milliseconds argument to SplashScreen you can use -1 like so:
Later, when you’ve finished loading, call
mySplash.Destroy()to clear it off the screen.