Learn Python tkinter GUI text areas easy 📒

preview_player
Показать описание
Python text textarea GUI tkinter widget

#Python #text #textarea #area #GUI #tkinter #widget
Рекомендации по теме
Комментарии
Автор

# text widget = functions like a text area, you can enter multiple lines of text
from tkinter import *

def submit():
input = text.get("1.0", END)
print(input)

window = Tk()
text = Text(window,
bg="light yellow",
font=("Ink Free", 25),
height=8,
width=20,
padx=20,
pady=20,
fg="purple")
text.pack()
button = Button(window, text="submit", command=submit)
button.pack()
window.mainloop()

BroCodez
Автор

Thank you so much you solve my problem 👍👍❤️💝😌😌 you really doing good job

valmikwagh
Автор

Didn't know Bro Code was chill like that.

sohailali
Автор

Awesome as always..but can you insert in listbox a label with buttons?

odysseaskorelides
Автор

If you compare this with java's swing this is much more faster and effective.

provokator-provocateur
Автор

Thanks a lot for all the videos, I've been learning a lot following you. I have a question though : how can we replace the necessity of clicking on the "submit" button by the use of the "enter" button from the keypad ?

PathToEverywhere
Автор

Can u write html code from the text area like notepad?(that would be a great idea)

noisyguest
Автор

why the index 1 starts a 1.0 not 0.0 as per usual please anyone.?

manuelvaal
Автор

can you guys please explain what is the use of this please??

demolisionboys
Автор

anyone knows why the text area count starts from 1.0 instead of 0? dont computers start counting from 0?

onlyLewds