[pygtk] ToggleButton args break with python2.6

Thomas Mills Hinkle tmhinkle at gmail.com
Sat May 30 20:21:59 WST 2009


On Sat, May 30, 2009 at 8:20 AM, Thomas Mills Hinkle <tmhinkle at gmail.com>wrote:

> 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


Scratch that last one -- I mixed up gtk version (2.16) with pygtk version
(2.14)

Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090530/3d41e4b7/attachment.htm 


More information about the pygtk mailing list