[Mrfilter-users] asomers@gmail.com
Status: Alpha
Brought to you by:
asomers
|
From: Joe M. <joe...@gm...> - 2012-06-25 20:38:57
|
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.
|