[pygtk] what arguments are textbuffer.serialize need?

Gian Mario Tagliaretti gianmt at gnome.org
Sun Jan 13 23:47:10 WST 2008


2008/1/13 无姓无名 <smmsms a gmail.com>:

Hi,

> a=gtk.TextBuffer()
> start, end = a.get_bounds()
> b=a.serialize(a, "application/x-gtk-text-buffer-rich-text", start, end)
>
> Traceback (most recent call last):
>   File "<pyshell#17>", line 1, in <module>
>     b=a.serialize(a, "application/x-gtk-text-buffer-rich-text", start, end)
> RuntimeError: more argument specifiers than keyword list entries

weird, what versions (and os) of pygtk are you using?

cheers
-- 
Gian Mario Tagliaretti


More information about the pygtk mailing list