On Thu, Jun 19, 2014 at 11:41 AM, crow <wen...@gmail.com> wrote: > Thanks for the suggestion. > For my script, I want to download a picture from internet & show it in a > window, that's why I use wxPython. > > Well, I think I may can avoid sleep in wxPython in 2 ways: > 1. Use web.py, let python do backend work, let browser show me everything. As > you suggested.
I've done this one a few times, although on Linux I tend to just use gnome-open or xdg-open and let the file be displayed with whatever's configured - there's usually some sort of image viewer available on the systems I use. > 2. Write 2 scripts, one script do network related works, sleep at will; the > other one show GUI. Use pipe or socket for process communication. 3. Write one script. First do the network stuff, sleep at will; then, when it's finished downloading, show the window. That might be easier! ChrisA -- https://mail.python.org/mailman/listinfo/python-list