I want to insert text to a textbuffer at the end...
Im using this: gtk.TextBuffer.insert_at_cursor
But if I clicking into the text there the new appears at the cursor...
How can i add text at the end?
I want to insert text to a textbuffer at the end...
Im using this: gtk.TextBuffer.insert_at_cursor
But if I clicking into the text there the new appears at the cursor...
How can i add text at the end?
Copyright © 2021 Jogjafile Inc.
Try using
gtk.TextBuffer.insert()withgtk.TextBuffer.get_end_iter(). Example:NOTE: Once you insert into
text_buffer,end_iteris invalidated so make sure to get a new reference to the end-iterator whenever you want to append to the end of the buffer.