J.W. Bizzaro wrote:
>
> Mitch Chapman wrote:
> >
> > Is there an easy way to temporarily display a busy cursor over
> > a window?
> > ...I can't figure out how to restore the previous cursor on
> > the window, or even how to find out what the previous cursor is.
>
> I haven't tried it, but this would be my guess:
>
> widget.get_window().set_cursor(None)
Alas, no joy:
Traceback (innermost last):
File "/usr/local/lib/python1.5/site-packages/gtk.py", line 114, in
__call__
ret = apply(self.func, a)
File "<stdin>", line 96, in enterTextCB
File "<stdin>", line 58, in run
TypeError: GdkWindow.set_cursor, argument 1: expected GdkCursor, None
found
And I can't pass a None to gtk.cursor_new(), either:
Traceback (innermost last):
File "/usr/local/lib/python1.5/site-packages/gtk.py", line 114, in
__call__
ret = apply(self.func, a)
File "<stdin>", line 97, in enterTextCB
File "<stdin>", line 58, in run
File "/usr/local/lib/python1.5/site-packages/gtk.py", line 2495, in
cursor_new
return _gtk.gdk_cursor_new(type)
TypeError: enum values must be integers or strings
--
Mitch Chapman
[EMAIL PROTECTED]
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]