[pygtk] Mouse pointer

Divya Kamat kamat.divya at gmail.com
Sun Apr 2 01:36:39 WST 2006


hello
this code dint work...gave naming error

Divya.


On 4/1/06, Sandro Dentella <sandro at e-den.it> wrote:
>
> On Sat, Apr 01, 2006 at 01:52:42PM +0200, Gian Mario Tagliaretti wrote:
> > 2006/4/1, Divya Kamat <kamat.divya at gmail.com>:
> >
> > >  Can we change the mouse pointer to
> > >  1. Indicators (eg hour glass to indicate 'busy' status)
> > >  2. Different arrows or pointers for different widgets like buttons
> (eg hand
> > > pointer for hyperlinks)
> > >  using pyGTK?
> >
> > Yes, check out FAQ 5.6:
> > http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq05.006.htp
>
> The 3 line of code reported in the example don't work for me:
>
> b = gtk.Button()
> watch = gtk.gdk.Cursor(gtk.gdk.WATCH)
> b.window.set_cursor(watch)
>
> AttributeError: 'NoneType' object has no attribute 'set_cursor'
>
> ???
> %-/
>
> --
> Sandro Dentella  *:-)
> e-mail: sandro at e-den.it
> http://www.tksql.org                    TkSQL Home page - My GPL work
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20060401/36e90d65/attachment.htm


More information about the pygtk mailing list