wiki:PyGTK

Version 1 (modified by atzm, 18 years ago) (diff)

--

PyGTK

適当メモ.主に日記からの転載.

TextView?

textField  = gtk.TextView()
textBuffer = textField.get_buffer()

[startIter, endIter] = textBuffer.get_bounds()
# [最初の位置, 最後の位置]

print textBuffer.get_text(startIter, endIter)