I would like to provide a splash-like window from the startup of my
program until the main window appears, but instead of showing the logo I
want to provide information of what the application is doing. The
initialisation sequence would be:
1. Show dialog "Looking for network server, please wait"
2. Do some stuff against a specific server
3. Same dialog, change message to "Authenticating user"
4. Do some other stuff
5. Close this splash like window and open the main application
I see that wxPython has a SplashScreenWindow, but it seems to be tied
closely to SplashScreen. I tried doing stuff like this too but without
results:
...somewhere inside wx.App's OnInit...
window = wx.Window(self.frame, style = wx.NO_BORDER)
window.Show()
but that doesn't show anything, neither if I try to add
self.frame.Show(), which opens the main application window.
The reason I need these windows is because when everything goes ok,
those initialisation operations take one or two seconds. But if there is
a network problem it can take ages to timeout, and if the user doesn't
see anything on screen he tries to double-click again the application,
relaunching it several times (until the first timeout shows an error
message dialog).
I guess I could use a PopupWindow, but that's quite ugly. ProgressDialog
is more in the spirit, but I don't want it to be so big, and it's just a one shot message (you simply cannot predict network timeouts with a progress bar).
···
--
Grzegorz Adam Hankiewicz, Jefe de producto de TeraVial
Rastertech España S.A. Tel: +34 918 467 390, ext 18.
http://www.rastertech.es/ ghankiewicz@rastertech.es