I've attached a simple example that illustrates my question. It's a
modified version of "simple.py" that's included with the wxPython demos. If
you click on the "close" button, it calls wxBeginBusyCursor which, according
to documentation: "Changes the cursor to the given cursor for all windows in
the application."
When running on Windows however, the cursor is only changed to the hour
glass when held over the "main frame". Over the secondary (child frame) it
turns back into a standard cursor.
On Linux, the "hour glass" is active over both windows, which seems to be
the expected behaviour when looking at the documentation.
How should one go about changing the cursor to an hour glass for all wx
windows on the Windows platform? Am I misinterpreting the documentation?
Any advice on this would be appreciated.
I've attached a simple example that illustrates my question. It's a
modified version of "simple.py" that's included with the wxPython demos. If
you click on the "close" button, it calls wxBeginBusyCursor which, according
to documentation: "Changes the cursor to the given cursor for all windows in
the application."
When running on Windows however, the cursor is only changed to the hour
glass when held over the "main frame". Over the secondary (child frame) it
turns back into a standard cursor.
On Linux, the "hour glass" is active over both windows, which seems to be
the expected behaviour when looking at the documentation.
How should one go about changing the cursor to an hour glass for all wx
windows on the Windows platform? Am I misinterpreting the documentation?
Any advice on this would be appreciated.
Please enter a bug report about this.
For a workaround I'm afraid you'll have to call SetCursor on every window, unless I'm forgetting something...
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
I've had a look in the documentation for a utility function to get a list of
all frames (my application has a variable number of them), but didn't find
anything. Should I just do a recursive walk down the window hierarchy to
get a list of all frames?
Thanks,
Charl
···
On Mon, May 05, 2003 at 03:15:06PM -0700, Robin Dunn wrote:
Charl P. Botha wrote:
>When running on Windows however, the cursor is only changed to the hour
>glass when held over the "main frame". Over the secondary (child frame) it
>turns back into a standard cursor.
>
>On Linux, the "hour glass" is active over both windows, which seems to be
>the expected behaviour when looking at the documentation.
>
>How should one go about changing the cursor to an hour glass for all wx
>windows on the Windows platform? Am I misinterpreting the documentation?
>Any advice on this would be appreciated.
>
Please enter a bug report about this.
For a workaround I'm afraid you'll have to call SetCursor on every
window, unless I'm forgetting something...
I've had a look in the documentation for a utility function to get a list of
all frames (my application has a variable number of them), but didn't find
anything. Should I just do a recursive walk down the window hierarchy to
get a list of all frames?
That won't give you toplevel window that have None for a parent. What is needed is wrappers for the wxTopLevelWindowList, which I have on my ToDo list.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!