2005/4/23, Nemesis <[EMAIL PROTECTED]>:
> Hi all,
> I'm trying to change the color of the cursor inside a TextView Widget. I
> set the background color of the widget (with the modify_base method) to
> black, but the cursor is black to and I'd like to change its color to
> white or anything else I can see on black.
> I tried with the modify_text and modify_fg methods, but didn't work.

Have a look at FAQ 5.6:
http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq05.006.htp

you can use a cursor provided by pygtk or make one your own:
http://www.pygtk.org/pygtk2reference/class-gdkcursor.html

Look at the constructor for how to build one with a pixmap.

cheers
gmt
_______________________________________________
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