{"_id":"546a06e5394c861a00c3a372","githubsync":"","is_link":false,"project":"545b531f852aea080003c919","version":{"_id":"545b531f852aea080003c91c","project":"545b531f852aea080003c919","__v":33,"createdAt":"2014-11-06T10:53:19.365Z","releaseDate":"2014-11-06T10:53:19.365Z","categories":["545b531f852aea080003c91d","545b5417852aea080003c929","545b5492852aea080003c92e","545b5585de8fad080013280e","545b5592852aea080003c949","545b5597de8fad0800132812","545b559d852aea080003c94a","545b55eade8fad0800132813","5469e6b7a3b67a0e00559b08","5469e753a3b67a0e00559b0b","5469e7c1394c861a00c3a2d5","5469e823a3b67a0e00559b0d","5469e861394c861a00c3a2d8","5469ec67394c861a00c3a2f7","5469ed10a3b67a0e00559b2e","5469ed3fa3b67a0e00559b30","5469ed6f394c861a00c3a300","5469ee0ea3b67a0e00559b3a","5469ee76394c861a00c3a308","5469eeffa3b67a0e00559b3e","5469fecb394c861a00c3a339","5469ff34a3b67a0e00559b5f","546a0026a3b67a0e00559b74","546a014ca3b67a0e00559b7a","546a01b5a3b67a0e00559b7d","546a07a1394c861a00c3a378","546a0c3da3b67a0e00559ba8","546a0c67394c861a00c3a38a","546a2368a3b67a0e00559bef","547842f3e98de5080093928a","547d880e2eaee50800ed123f","5486f1637810260b001c3661","558923496256ae2300fa84a7"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"545b5597de8fad0800132812","version":"545b531f852aea080003c91c","__v":13,"pages":["5469eb81394c861a00c3a2ed","546a021e394c861a00c3a360","546a0241a3b67a0e00559b7e","546a0684394c861a00c3a370","546a06e5394c861a00c3a372","546a0742a3b67a0e00559b9c","546a0778394c861a00c3a375","547d85852eaee50800ed1238","547d86de78fd57080023cbe2","547d870178fd57080023cbe5","547d871d2eaee50800ed123d","547de8c4bc8de71600bdaf21","547e3911b3f56708000b8e8f"],"project":"545b531f852aea080003c919","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-11-06T11:03:51.018Z","from_sync":false,"order":5,"slug":"python-code-snippets","title":"Python Code Snippets"},"__v":0,"user":"545b5304852aea080003c918","updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-11-17T14:32:05.093Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"basic_auth":false,"try":true,"auth":"never","params":[],"url":""},"isReference":false,"order":4,"body":"[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"import wx\\n \\ndef show_splash():\\n    # create, show and return the splash screen\\n    bitmap = wx.Bitmap('images/splash.png')\\n    splash = wx.SplashScreen(bitmap, wx.SPLASH_CENTRE_ON_SCREEN|wx.SPLASH_NO_TIMEOUT, 0, None, -1)\\n    splash.Show()\\n    return splash\\n \\ndef main():\\n    app = wx.PySimpleApp()\\n    splash = show_splash()\\n \\n    # do processing/initialization here and create main window\\n    frame = MyFrame(...)\\n    frame.Show()\\n \\n    splash.Destroy()\\n    app.MainLoop()\\n \\nif __name__ == '__main__':\\n    main()\",\n      \"language\": \"python\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"wxpython-splash-screen","type":"basic","title":"wxPython Splash Screen"}

wxPython Splash Screen


[block:code] { "codes": [ { "code": "import wx\n \ndef show_splash():\n # create, show and return the splash screen\n bitmap = wx.Bitmap('images/splash.png')\n splash = wx.SplashScreen(bitmap, wx.SPLASH_CENTRE_ON_SCREEN|wx.SPLASH_NO_TIMEOUT, 0, None, -1)\n splash.Show()\n return splash\n \ndef main():\n app = wx.PySimpleApp()\n splash = show_splash()\n \n # do processing/initialization here and create main window\n frame = MyFrame(...)\n frame.Show()\n \n splash.Destroy()\n app.MainLoop()\n \nif __name__ == '__main__':\n main()", "language": "python" } ] } [/block]