Text.getMaxLength

Retrieves the maximum allowed length of the text in self.

See gtk.text.Text.setMaxLength.

This is equivalent to getting self's gtk.entry_buffer.EntryBuffer and calling gtk.entry_buffer.EntryBuffer.getMaxLength on it.

class Text
int
getMaxLength
()

Return Value

Type: int

the maximum allowed number of characters in gtk.text.Text, or 0 if there is no maximum.