Re: [Mrfilter-users] get_name issue
Status: Alpha
Brought to you by:
asomers
|
From: <as...@gm...> - 2012-06-28 17:31:26
|
I finally got a Fedora 17 VM running, but I can't reproduce this problem.
I have pygtk2-2.24.0-4.fc17 (64 bit) and python-2.7.3-6.fc17 (64 bit) and
the ButterworthBtn group works fine. Perhaps the newer pygtk package fixed
the problem?
On Mon, Jun 25, 2012 at 2:39 PM, Joe Mac <joe...@gm...> wrote:
>
> I'm having more issues now that it's up and running. The problem is that
> widget.get_name doesn't seem to return the kind of name you're expecting in
> your code. This seems to cripple most of the program. Here's an example
> of one of the many errors this causes.
>
> Traceback (most recent call last):
> File "/usr/lib/python2.7/site-packages/mrfilter/main.py", line 364, in
> on_ButterworthBtn_group_toggled
> 'CauerBtn' : ('cauer', False, True)}[widget.get_name()]
> KeyError: 'GtkRadioButton'
>
> Your code is expecting get_name() to return something
> like 'ButterworthBtn' or 'CauerBtn', but it instead is returning
> 'GtkRadioButton', which is obviously the name of the widget class that the
> button is an instance of instead of a string identifier like your code
> expects. I've been able to find at least one other instance of somebody
> having this problem. I'm not sure if it's a bug or a "feature" of the
> version of pygtk or python compared to what yours is. My python is 2.7.3,
> and my pygtk2 is pygtk2-2.24.0.
>
> I'm not really sure what you should be expected to do about this. It
> seems to me like a goof on the part of pygtk rather than your fault, but if
> that's the direction that they're heading you may have to figure out how to
> stay compatible. I'll try to do a little more research and let you know if
> I find anything helpful.
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Mrfilter-users mailing list
> Mrf...@li...
> https://lists.sourceforge.net/lists/listinfo/mrfilter-users
>
>
|