Hi,<br><br>Now, it throws:<br><br>AttributeError: 'NoneType' object has no attribute 'set_cursor'<br><br>I agree to the fact that it is a gtk.gdk.Window object. Does win.window invoke a gtk.gdk.Window object? Correct me if am wrong as I am still learning the details and tricks associated with python and gtk.<br>
<br>Thanks again for your time. I really appreciate your help.<br><br><div class="gmail_quote">On Mon, Aug 3, 2009 at 2:56 PM, John Finlay <span dir="ltr"><<a href="mailto:finlay@moeraki.com">finlay@moeraki.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"><div><div></div><div class="h5">
On 08/03/2009 09:23 PM, John Finlay wrote:
<blockquote type="cite">
<pre>DINESHBABU DINAKARABABU wrote:
</pre>
<blockquote type="cite">
<pre>Hi everyone,
I am pretty new to Python and Pygtk. I would be grateful if someone
could help me out with this issue.
I am trying to get a full screen display of an image from some raw
data using the pixbuf_new_from_data() method. I want to do away with
the default cursor option and implement an invisible cursor so that we
don't see the cursor during the full screen display. To implement the
invisible cursor, I am doing the following:
pixmap = gtk.gdk.Pixmap(None, 1, 1, 1)
color = gtk.gdk.Color()
cursor = gtk.gdk.Cursor(pixmap, pixmap, color, color, 0, 0)
gtk.gdk.Window.set_cursor(cursor)
However, I am getting this error:
TypeError: descriptor 'set_cursor' requires a 'gtk.gdk.Window' object
but receives a 'gtk.gdk.Cursor'.
</pre>
</blockquote>
<pre>Try using:
win.set_cursor(cursor)
The error message is indicating that you have passed the wrong object to
the function gtk.gdk.Window.set_cursor() which requires a Window object
and a Cursor object as args. You should invoke the method of the Window
object win instead.
</pre>
</blockquote></div></div>
My mistake it should be:<br>
<br>
win.window.set_cursor(cursor)<br>
<br>
since it's the gtk.gdk.Window object not the gtk.Window object.<br>
<br>
john<br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Cheers<br>DB<br>