Class gtk.TextView
Defined in: jsgtk_merge_for_doc.js.
Constructor Attributes | Constructor Name and Description |
---|---|
A widget that displays the contents of a gtk.TextBuffer.
|
Field Attributes | Field Name and Description |
---|---|
'blurred' signal
|
|
'enterkeypressed' signal
|
|
'focused' signal
|
Method Attributes | Method Name and Description |
---|---|
Allow user to create custom event when enterkey is pressed
|
|
focus()
Focus the cursor on the textview
|
|
Returns the value of the "editable" property
|
|
Returns the value of the "justification" property.
|
|
getValue()
Retrieve the value inside TextView
|
|
setEditable(setting)
Sets the "editable" property to the value of setting.
|
|
setJustification(the)
Sets the "justification" property to the value of justification.
|
|
setValue(value)
Set the default value inside TextView
|
|
showError(isOnError)
Show error
|
Class Detail
gtk.TextView()
A widget that displays the contents of a gtk.TextBuffer. A class inherit from gtk.Container
Field Detail
TEXTVIEW_BLURRED
'blurred' signal
TEXTVIEW_ENTERKEYPRESSED
'enterkeypressed' signal
TEXTVIEW_FOCUSED
'focused' signal
Method Detail
allowEnterKey()
Allow user to create custom event when enterkey is pressed
focus()
Focus the cursor on the textview
getEditable()
Returns the value of the "editable" property
- Returns:
- True if text is editable by default
getJustification()
Returns the value of the "justification" property. the default justification of paragraphs in text_view. The value of "justification" must be one of: gtk.JUSTIFY_LEFT, gtk.JUSTIFY_RIGHT, gtk.JUSTIFY_CENTER or gtk.JUSTIFY_FILL.
- Returns:
- The default justification
getValue()
Retrieve the value inside TextView
- Returns:
- The value of TextView
setEditable(setting)
Sets the "editable" property to the value of setting. If setting is True the text in textview is editable by default
- Parameters:
- {boolean} setting
- If True the text is editable by default
setJustification(the)
Sets the "justification" property to the value of justification. The value of justification must be one of: gtk.JUSTIFY_LEFT, gtk.JUSTIFY_RIGHT, gtk.JUSTIFY_CENTER or gtk.JUSTIFY_FILL
- Parameters:
- {String} the
- text justification
setValue(value)
Set the default value inside TextView
- Parameters:
- {String} value
- The value to be set into TextView
showError(isOnError)
Show error
- Parameters:
- {boolean} isOnError