I'm new to Python 3 programming and are getting errors that I can't seem to fix. I'm trying to make a text editor. This is the code:
import tkinter as tk
class PyText:
def __init__(self, master):
master.title("Untitled - PyText")
master.geometry("1200x700")
if __name__ == "__main__":
master = tk.TK()
pt = PyText(master)
master.mainloop()
Running it I get: Traceback (most recent call last): File "textEdit.py", line 12, in master = tk.TK() AttributeError: module 'tkinter' has no attribute 'TK'
How can I fix this??? Thank you for the help!
TK. It'sTk.