Change mouse pointer to hourglass

Can anyone *point* me in the right direction for how to turn the mouse pointer into an hourglass (and back) so that the user knows the program is still working (ie. for database queries to return)?

googling for wxpython mouse pointer returns a lot of hits but nothing I could immediately see as relevant.

TIA,
Bill

Bill Witherspoon wrote:

Can anyone *point* me in the right direction for how to turn the mouse pointer into an hourglass (and back) so that the user knows the program is still working (ie. for database queries to return)?

googling for wxpython mouse pointer returns a lot of hits but nothing I could immediately see as relevant.

That's probably because the standard name for "mouse pointer" is "cursor". Check the wxWindows docs for wxBeginBusyCursor() and wxEndBusyCursor(). You can probably figure out fancier things to do with the cursor from there.

Jeff Shannon
Technician/Programmer
Credit International

wxBeginBusyCursor()
longDbQuery()
wxEndBusyCursor()

You may want to also wrap it in
wxEnableTopLevelWindows(FALSE)
wxEnableTopLevelWindows(TRUE)

to prevent the user from doing anything else.

A good place to find these things is in the wxWindows function list:
  http://www.wxwindows.org/manuals/2.4.0/wx423.htm#functions

Jason

···

On Tue, Mar 04, 2003 at 02:28:32PM -0500, Bill Witherspoon wrote:

Can anyone *point* me in the right direction for how to turn the mouse
pointer into an hourglass (and back) so that the user knows the program
is still working (ie. for database queries to return)?

googling for wxpython mouse pointer returns a lot of hits but nothing I
could immediately see as relevant.

Yep, that did the trick.
Its always vocabulary thats tripping me up...

many thanks,
Bill.

···

* Jeff Shannon (jeff@ccvcorp.com) wrote:

Bill Witherspoon wrote:

>Can anyone *point* me in the right direction for how to turn the mouse
>pointer into an hourglass (and back) so that the user knows the
>program is still working (ie. for database queries to return)?
>
>googling for wxpython mouse pointer returns a lot of hits but nothing
>I could immediately see as relevant.

That's probably because the standard name for "mouse pointer" is
"cursor". Check the wxWindows docs for wxBeginBusyCursor() and
wxEndBusyCursor(). You can probably figure out fancier things to do
with the cursor from there.

Jeff Shannon
Technician/Programmer
Credit International

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

I'm not cool.
Neither is my sig...