setText

open fun setText(chars: String, nChars: Int)

Sets the text in the buffer.

This is roughly equivalent to calling method@Gtk.EntryBuffer.delete_text and method@Gtk.EntryBuffer.insert_text.

Note that @n_chars is in characters, not in bytes.

Parameters

chars

the new text

nChars

the number of characters in @text, or -1