[virt-tools-list] AttributeError: 'gtk.Entry' object has no attribute 'is_sensitive'

Eduardo Elias Camponez edusf at linux.vnet.ibm.com
Mon May 14 15:10:44 UTC 2012

On 05/11/2012 06:14 PM, Eduardo Elias Camponez wrote:
> Hi,
> I am getting this error:
> File
> "/home/camponez/devel/virt-manager.git/src/virtManager/addhardware.py",
> line 792, in get_config_usbredir_host
>     if not host.is_sensitive():
> AttributeError: 'gtk.Entry' object has no attribute 'is_sensitive'
> I am reporting this because it is strange to me that this code runs to
> anyone as in pygtk documentation, there is no "is_sensitive" method for
> gtk.Entry (or gtk.Widget), but gtk.Action. By the way this method exists
> in gtk.Widget on the gtk documentation.
> The method to be called here should be get_sensitive() then.
> What am I missing?
> Regards,
> Eduardo Elias Ferreira 
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list

Since pygtk 2.8 the way to check if a widget is sensitive or not is
using "widget.props.sensitive":

I will send a patch.


Eduardo Elias Ferreira

More information about the virt-tools-list mailing list