On Tue, 27 Mar 2001, Paul Spencer wrote:

> Hi all,
> 
> <pygtk0.6.6, python2.0, win2k>
> 
> I would like to set a busy cursor during a lengthy calculation.  I have
> discovered that I can do the following:
> 
>         ...
>         win = self.get_window()
>         cur = gtk.cursor_new(cursor_idx)
>         win.set_cursor(cur)
>         ...
> 
> where cursor_idx is one of the ones listed in GDK.py under GdkCursorTypes.
> However, it doesn't set the cursor for everything (read child widgets), just
> the widget (say the GtkWindow) on which it was called.  I would like to
> cursor to stay the same over the entire window ... do I need to enumerate
> all children of all widgets to make this happen?  Once I am done, how do I
> restore the default windows cursor?  Finally, can I use the Windows busy
> cursor (whatever the user has selected)?

This is possibly a bug in the win32 port.  If a cursor is not specified
for a particular GdkWindow, it is supposed to use the cursor of its parent
window (this is why you can change the default cursor in X by setting the
cursor for the root window).  Unless you are setting the cursor on other
windows, it should work.

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to