[pygtk] Mouse pointer
Danny Milosavljevic
danny.milo at gmx.net
Sun Apr 2 01:38:30 WST 2006
Hi,
Am Samstag, den 01.04.2006, 19:15 +0200 schrieb Sandro Dentella:
> 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'
oops... fixed
cheers,
Danny
More information about the pygtk
mailing list