[wxPython-users] Splash screen positioning

roee shlomo roee88 at gmail.com
Mon Oct 1 01:59:58 PDT 2007


I fixed your code:


> import wx
>
> class App(wx.App):
>    def OnInit(self):
>        frame =3D Frame()
>        frame.Show()
>        return True
>
> class Frame(wx.Frame):
>    def __init__(self):
>
>        # Set up the frame
>        wx.Frame.__init__(self, None, id =3D -1, title =3D "Domainspotter!=
",
> pos =3D (300, 200), size =3D (700, 600))
>
>        # Show logo splash screen while things startup
>        splashimg =3D wx.Image("resources/logo.png", wx.BITMAP_TYPE_PNG
> ).ConvertToBitmap()
>        wx.SplashScreen(splashimg, wx.SPLASH_CENTRE_ON_PARENT |
> wx.SPLASH_TIMEOUT, 2000, self, -1)
>        wx.Yield()
>
> a =3D App()
> a.MainLoop()
>

- Roee.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200710=
01/e23c7bf4/attachment.htm


More information about the wxpython-users mailing list