[pygtk] ToggleButton args break with python2.6
Thomas Mills Hinkle
tmhinkle at gmail.com
Sat May 30 20:20:02 WST 2009
After a recent OS upgrade, I found that my code broke with the following:
self.pause = gtk.ToggleButton(_('_Pause'),True)
RuntimeError: more argument specifiers than keyword list entries
(remaining format:'):GtkToggleButton.__init__')
Testing at the python shell confirms. I get the same error with
gtk.ToggleButton('_foo',use_underline=True)
The docs here still show two args to ToggleButton (string + use_underline
flag): http://www.pygtk.org/pygtk2reference/class-gtktogglebutton.html
Oddly, I don't get this error with python2.5. I don't have a full range of
test set ups, but here's what I've tried...
python2.5 / pygtk 2.14: no error
python2.6 / pygtk 2.14: error
python2.6 / pygtk 2.16: error
Any ideas what's going on?
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090530/67e99053/attachment.htm
More information about the pygtk
mailing list