[pygtk] Mouse pointer

Sandro Dentella sandro at e-den.it
Sun Apr 2 01:15:49 WST 2006


On Sat, Apr 01, 2006 at 01:52:42PM +0200, Gian Mario Tagliaretti wrote:
> 2006/4/1, Divya Kamat <kamat.divya a 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 a e-den.it 
http://www.tksql.org                    TkSQL Home page - My GPL work


More information about the pygtk mailing list