[pygtk] Help with set_cursor() ---- Invisible cursor option
saeed
saeed.gnu at gmail.com
Tue Aug 4 08:59:38 WST 2009
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 <finlay at 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 at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
More information about the pygtk
mailing list