Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
def set_post_text(self, text):
"""Simple Helper function that sets the text
in the text View.
@param text - The text that will be put into
the text view.
"""
#select all of the text
start, end = self.txtBuffer.get_bounds()
self.txtBuffer.select_range(end,start)
#insert over the selection i.e. replace all the text
self.insert_text(text)
#put the selection at the end.
start, end = self.txtBuffer.get_bounds()
self.txtBuffer.select_range(end,end)
textbuffer =gtk.TextBuffer(None)
textbuffer.set_text("")
1 to 5 of 5