Re: whoops: create a splash window in python
On Thu, Dec 31, 2009 at 12:31 AM, Ron Croonenberg wrote: > is there a way, in python, to create a splash window and when the program > has completed disappears by sending a msg to it? (I tried creating two gtk > windows but gtk_main doesn't seem to return unless it gets closed.) It's really simple to do this in Dabo (which uses wxPython under the hood, but is _so_ much more elegant!). When you create your app, add the following two parameters: app = dabo.dApp(showSplashScreen=True, splashImage="/path/to/splash.png") That's it! -- # p.d. -- http://mail.python.org/mailman/listinfo/python-list
Re: whoops: create a splash window in python
On Dec 30, 11:31 pm, Ron Croonenberg wrote: > sorry about posting with the wrong subject... > > * > hello, > > is there a way, in python, to create a splash window and when the > program has completed disappears by sending a msg to it? (I tried > creating two gtk windows but gtk_main doesn't seem to return unless it > gets closed.) > > tia > > Ron > * wxPython has a splash page "widget" for this sort of thing. Of course, if all you want to do is display a message to the user for a short time, any GUI library will allow you to create a window of some sort that you can use for that purpose. Note that GUI's tend to run in a loop that may block your calling program, so you may need to mess with threads, in which case each GUI has their own thread-safe methods. It's less complicated then it sounds. I tend to use wxPython the most, so if you have specific questions about that, let me know. Good luck! --- Mike Driscoll Blog: http://blog.pythonlibrary.org PyCon 2010 Atlanta Feb 19-21 http://us.pycon.org/ -- http://mail.python.org/mailman/listinfo/python-list
Re: whoops: create a splash window in python
Ron Croonenberg wrote: > sorry about posting with the wrong subject... > Ron: In general it's a bad idea to try and start a new thread by replying to an existing post, even if you *do* change the subject line. I don't normally post attachments on this list (it's somewhat contrary to accepted netiquette), but here is a picture of how your post gets positioned in my Thunderbird reader: it's still part of the original thread, and will therefore be missed completely by anyone who's chosen to ignore that thread. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/ Holden Web LLC http://www.holdenweb.com/ UPCOMING EVENTS:http://holdenweb.eventbrite.com/ <>-- http://mail.python.org/mailman/listinfo/python-list
whoops: create a splash window in python
sorry about posting with the wrong subject... * hello, is there a way, in python, to create a splash window and when the program has completed disappears by sending a msg to it? (I tried creating two gtk windows but gtk_main doesn't seem to return unless it gets closed.) tia Ron * -- http://mail.python.org/mailman/listinfo/python-list