Hi, Thanks a ton.
That did help. It works good but I still get a small black dot in place of the main cursor. Is there any way by which I can do away with this tiny black dot, too? Thanks again. On Mon, Aug 3, 2009 at 5:59 PM, saeed <saeed....@gmail.com> wrote: > Or run set_cursor() when the window realized. for example: > win.connect("realize", lambda obj: win.window.set_cursor(myCurser)) > > On 8/4/09, John Finlay <fin...@moeraki.com> wrote: > > On 08/03/2009 03:05 PM, DINESHBABU DINAKARABABU wrote: > >> Hi, > >> > >> Now, it throws: > >> > >> AttributeError: 'NoneType' object has no attribute 'set_cursor' > >> > >> 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. > >> > > This means that there is no gtk.gdk.Window associated with the > > gtk.Window (win in this case). This is usually because the gtk.Window > > has not been realized (have a look at the tutorial which has an > > description of the widget display methods). You can call the widget > > realize() or show() methods before setting the cursor, or connect to the > > realize signal of win and set the cursor in the callback. > > > > John > > _______________________________________________ > > pygtk mailing list pygtk@daa.com.au > > http://www.daa.com.au/mailman/listinfo/pygtk > > Read the PyGTK FAQ: http://faq.pygtk.org/ > > > -- Cheers DB
_______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/