Skip to content

TextEditor Class

Parameters

NameTypeDescription
mastertkinter.Tk

Methods

exit

open

Reads, then applies the text from the file to the textarea

Parameters

NameTypeDescription
fpstr
modestr

set

Set text in textarea

Parameters

NameTypeDescription
textstr

delete

Clears all text in textarea

get

Get text inside textarea

Example

py
import tkinter

root = tkinter.Tk()
root.mainloop()

Not associated with or approved by Mojang Studios or Microsoft