spinning tilder

-->-----Original Message-----
-->From: Bob Klimek [mailto:klimek@grc.nasa.gov]
-->Sent: Tuesday, August 09, 2005 10:16 AM
-->To: wxPython-users@lists.wxwidgets.org
-->Subject: Re: [wxPython-users] spinning tilder
-->
-->Timothy Smith wrote:
-->
-->> i want to use popup windows to give users feed back on when my
-->> application is contacting the database, and show a spinning / or ...
-->> to indicate it's not stalled. do i need to use fork() or something so
-->> that the loop used to spin the / doesn't hold up the rest of the
-->> program, does wx have some method built in that i can use? note that
-->> i'd rather just something like a spinning / to avoid the need to
-->> distribute a graphic.
-->>
-->> i also plan on using this to show a "time elapsed 0 minutes 1 seconds"
-->> feed back. (so if anyone whinges something is taking too long they can
-->> tell me exactly now long, not just exagerrate)
-->>
-->Another possibility is to change the cursor to an hour-glass (and then
-->change it back). That works quite well if you know the wait won't be
-->more than a few seconds. If it takes longer then some popup indicating
-->elapsed time or preferably how much time is left is better. The demo has
-->an example of a PopupWindow.

[snip!]

The quick easy way to do that is with a wx.BusyInfo window ->

busy = wx.BusyInfo("Gone fishing. Be back later.")

This will popup a nice window telling everyone you've gone fishing. When
`busy' goes out of scope, the window disappears. While the window is
displayed, the cursor turns into the `flipping-hourglass' (at least on
windows).

Hope you have better luck fishing than I did this past weekend! HTH!
jw