I'm having this difficulty getting the TextField text and "printable it" in the Tkinter window
Code:
from tkinter import *
from tkinter import messagebox
import time
jan = Tk()
jan.title('KNOM OS')
jan.geometry('1366x760+0+0')
jan.configure(background="lightgrey")
#=========FRAMES===============
Top = Frame(jan, bg="#4169E1", width=1366, height=75, bd=3, relief="raise")
Top.pack(side=TOP)
Left = Frame(jan,bg="#B0C4DE", width=300, height=650, bd=3, relief="raise")
Left.pack(side=LEFT)
Right = Frame(jan,bg="#B0C4DE", width=450, height=650, bd=3, relief="raise")
Right.pack(side=RIGHT)
tit = Label(jan, text="FriendBook", bg="#4169E1", fg="white", font=("Century
Gothic", 20))
tit.place(x=600, y=15)
pi = Button(jan, text="Pagina Inicial", bg="#4169E1",bd=0, fg="white", font=
("Sans Serif", 12))
pi.place(x=1000, y=30)
bar = Label(jan, text="|", bg="#4169E1", fg="white")
bar.place(x=1125, y=32)
mr = Button(jan, text="Mural", bg="#4169E1",bd=0, fg="white", font=("Sans
Serif", 12))
mr.place(x=1150, y=30)
tab = Button(jan, text="=", bg="#4169E1",bd=0, fg="white", font=("Sans
Serif", 25))
tab.place(x=1300, y=5)
textField = Text(jan, width=75, height=10)
textField.place(x=305, y=100)
def comp():
t =textField.get(0.0, END)
a = Frame(jan, bg="lightgrey", width=600, height=200, bd=1, relief="raise")
a.place(x=305, y=330)
b = Frame(jan, bg="lightgrey", width=600, height=75, bd=1, relief="raise")
b.place(x=305, y=455)
env = Button(jan, text="Compartilhar",bg="lightgreen", fg="white", bd=0,
font=("Arial", 15), command=comp)
env.place(x=305, y=280)
jan.mainloop()