|
Re: no invisible cursor: msg#00173gnome.gtk+.python
Ross Burton wrote: On Mon, 2005-02-28 at 14:45 +0100, Le Boulanger Yann wrote: I have try this: def create_empty_cursor(window): pix_data = """#define invisible_cursor_width 0 #define invisible_cursor_height 0 #define invisible_cursor_x_hot 0 #define invisible_cursor_y_hot 0 static unsigned short invisible_cursor_bits[] = {};""" color = gtk.gdk.Color() pix = gtk.gdk.bitmap_create_from_data(window, pix_data, 1, 1) return gtk.gdk.Cursor(pix, pix, color, color, 0, 0) The problem is that I still get a black dot. I want nothing, not event that dot. (I have try to set the pix to have size 0x0, but it crashes the whole app). I believe hiding the cursor is a common enough operation - there should be some shorcut for doing it. I though that gtkgdk.Cursor *with no arguments* is the way to do it. It looks now, it isn't :( So, how do I hide the cursor? 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> |
|---|---|---|
| Previous by Date: | Re: no invisible cursor: 00173, Ross Burton |
|---|---|
| Next by Date: | Re: no invisible cursor: 00173, Ross Burton |
| Previous by Thread: | Re: no invisible cursori: 00173, Ross Burton |
| Next by Thread: | Re: no invisible cursor: 00173, Ross Burton |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |