Tim Evans <[EMAIL PROTECTED]> writes:

> You need to do this instead:
>
> v.get_window(gtk.TEXT_WINDOW_TEXT).set_cursor(gtk.gdk.Cursor(gtk.gdk.HAND2))
>
> This is because the textview is made up of several windows.  The
> actual text window already has a cursor set on it (the i-beam cursor),
> so changing the cursor of its parent window has no effect.

Thank you!
I wondered why get_children() didn't solve that, but then I realized I
could do
v.window.get_children()[0].get_children()[0].set_cursor(gdk.Cursor(gdk.HAND2))
as well.

-- 
Fredrik Arnerup <[EMAIL PROTECTED]>

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to