Thomas Mills Hinkle wrote:
> After a recent OS upgrade, I found that my code broke with the following:
> 
>     self.pause = gtk.ToggleButton(_('_Pause'),True)
>
> [...]
> python2.6 / pygtk 2.14: error

There is a typo in PyGTK code.  Can you check if the following helps?

Paul


diff --git a/gtk/gtk.override b/gtk/gtk.override
index 8d7a0f5..cabe3b7 100644
--- a/gtk/gtk.override
+++ b/gtk/gtk.override
@@ -1713,7 +1713,7 @@ _wrap_gtk_toggle_button_new(PyGObject *self, 
PyObject*args, PyObject*kwargs)
     PyObject *py_use_underline = Py_True;
 
     if (!PyArg_ParseTupleAndKeywords(args, kwargs,
-                                     "|zO):GtkToggleButton.__init__", kwlist,
+                                     "|zO:GtkToggleButton.__init__", kwlist,
                                      &text, &py_use_underline))
         return -1;
     if (text)
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to