Re: AttributeError: 'gtk.Entry' object has no attribute 'is_sensitive'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
> 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":
http://faq.pygtk.org/index.py?req=show&file=faq05.002.htp

I will send a patch.

Regards,

Eduardo Elias Ferreira


[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux