TextArea
Similar to an Entry, but allows you to type text over multiple lines.
from appJar import gui
app=gui()
app.addTextArea("t1")
app.go()
Add TextAreas
-
.addTextArea(title)
Adds an empty TextArea, with the specified title. -
.addScrolledTextArea(title)
Adds a scrollable TextArea with the specified title.
Set TextAreas
-
.setTextArea(title, text, end=True, callFunction=True)
Adds the supplied text to the specified TextArea.
By default, the text is added to the end.
Setend
to be False if you want to add at the beginning.
SetcallFunction
to be False, if you don't want to call any associated functions. -
.clearTextArea(title, callFunction=True)
Clears the contents of the specified TextArea.
SetcallFunction
to be False, if you don't want to call any associated functions. -
.clearAllTextAreas(callFunction=False)
This will clear the contents of all TextAreas in the app.
SetcallFunction
to be True, if you want to call any associated functions.
Get TextAreas
-
.getTextArea(title)
Gets the contents of the specified TextArea. -
.getAllTextAreas()
This will return the contents of all TextAreas in the app, as a dictionary.