[pygtk] ToggleButton args break with python2.6
Paul Pogonyshev
pogonyshev at gmx.net
Sat May 30 20:53:29 WST 2009
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)
More information about the pygtk
mailing list