Re: EuGTK - Q: how to show a picture before main()

new topic     » goto parent     » topic index » view thread      » older message » newer message
Jerry_Story said...

I have the following EuGTK code fragment.

  show_all(splash)   -- This shows a picture to look at while the data loads. 
  getUSDAdata()    -- This takes a few seconds to load the data. 
  hide(splash)   -- After the data is loaded, the picture goes away. 

What happens is:
1. No picture, data loads, taking a few seconds.
2. After the data is loaded, the picture shows, if I comment out hide(splash).

It ain't supposed to work that way. The purpose of the picture is to tell the user that the computer is doing something and did not hang up.

How can I get the picture to show before the data starts loading?

Without your full code, it's hard for me to say, but I'd guess where and how you call gtk_main() is an issue here.

Maybe you can get a better idea of what needs to be done by looking at http://www.gtkforums.com/viewtopic.php?t=1298 and http://faq.pygtk.org/index.py?req=show&file=faq20.005.htp

At least one person gave up and wrote a separate application just to be able to get the splash screen to show up correctly: http://ricochen.wordpress.com/2009/10/12/splash-screen-with-gtk/

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu