[pygtk] what arguments are textbuffer.serialize need?
无姓无名
smmsms at gmail.com
Sun Jan 13 17:17:12 WST 2008
a=3Dgtk.TextBuffer()
start, end =3D a.get_bounds()
b=3Da.serialize(a, "application/x-gtk-text-buffer-rich-text", start, end)
Traceback (most recent call last):
File "<pyshell#17>", line 1, in <module>
b=3Da.serialize(a, "application/x-gtk-text-buffer-rich-text", start, en=
d)
RuntimeError: more argument specifiers than keyword list entries
gtk.TextBuffer.serialize
def serialize(content_buffer, format, start, end)
content_buffer : the gtk.TextBuffer to serialize
format : the rich text format to use for serializing
start : start of block of text to serialize
end : end of block of test to serialize
Returns : the serialized data, encoded as format
what arguments are textbuffer.serialize need?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20080113/7886ae12/at=
tachment.htm
More information about the pygtk
mailing list