Johan Dahlin wrote:
> ---------- Forwarded message ----------
> From: Rodrigo Almeida <[email protected]>
> Date: Tue, Feb 10, 2009 at 6:37 PM
> Subject: Question
> To: [email protected]
>
>
> Hello Friends,
>
> I'm a programmer from Brasil, and i am doing an application using pygtk.
> I would like to know if you can help me. My question is: is there a
> way to use an image as a cursor?
>
> something like this:
>
> self.image.set_from_file("myimage.png")
> self.Tela.window.set_cursor(self.image)
>
> I hope you can help me.
>
> Greetings.
>
> Rodrigo Almeida.
>   
pb = gtk.gdk.pixbuf_new_from_file("myimage.png")
c = gtk.gdk.Cursor(gtk.gdk.display_get_default(), pb, 0, 0)
widget.window.set_cursor(c)

John

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to