logo       

no invisible cursor: msg#00169

gnome.gtk+.python

Subject: no invisible cursor

Hi,

The reference says:

"To make the cursor invisible, use gtk.gdk.Cursor() to create a cursor with no pixels in it."

When I try to use it, I get an error:

>>> import gtk
>>> gtk.pygtk_version
(2, 4, 1)
>>> c = gtk.gdk.Cursor()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: Usage:
gtk.gdk.Cursor(cursor_type)
gtk.gdk.Cursor(display, cursor_type)
gtk.gdk.Cursor(display, pixbuf, x, y)
gtk.gdk.Cusrsor(source, mask, fg, bg, x, y)
>>>

Any idea on what's wrong? Is this not supported in 2.4.1? Is it a bug?

TIA,

--
Ionutz Borcoman

http://borco.net/
_______________________________________________
pygtk mailing list pygtk@xxxxxxxxxx
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise