[pygtk] gtk.ToggleButton not working.

John Finlay finlay at moeraki.com
Fri Jul 17 18:45:56 WST 2009


Neil Dugan wrote:
> With pygtk version 2.12.9 this works
> "button = gtk.ToggleButton('test',False)"
> but on pygtk version 2.16.1 it no longer works :)
>
> I get the error message
> RuntimeError: more argument specifiers than keyword list entries 
> (remaining format:'):GtkToggleButton.__init__')
>
> what do I need to do for it to work on both versions?
>   
It's a bug. The workaround is:

button = gtk.ToggleButton('test')
button.props.use_underline = False

John



More information about the pygtk mailing list