In this video we will discuss Text boxes in Tkinter, in which we can insert multiple lines.
Source code:
from tkinter import *
root = Tk()
root.geometry("800x600")
root.title("Text Box")
l1=Label(root,text="Multiline Text Box",font=("calibri",16),fg="Blue",bg="pink").pack(pady=20)
Textbox1=Text(root,width=30,height=10,font=("calibri",16),fg="Blue",bg="pink")
Textbox1.pack()
def clear():
Textbox1.delete(1.0,END)
clear_button=Button(root,text="Click to clear the text box",command=clear,font=("calibri",16),fg="Blue",bg="pink")
clear_button.pack()
def getdata():
l1.config(text=Textbox1.get(1.0,END))
getdata_button=Button(root,text="Click to getdata the text box",command=getdata,font=("calibri",16),fg="Blue",bg="pink")
getdata_button.pack()
l1=Label(root,text="",font=("calibri",16),fg="Blue",bg="pink")
l1.pack(pady=20)
root.mainloop()
tkinter,python tkinter,tkinter library,tkinter course,tkinter tutorial,user interface,good tkinter application,graphic user interface,graphical user interface,gui software,how to program a tkinter application,mainloop,ui design,create gui,python project for beginners,gui program,application,programming,python file,extract text from pdf,gui,python project,how to program,command prompt,gui application,atom,create python gui,python programming
Sur cette page du site, vous pouvez voir la vidéo en ligne TKINTER GUIs IN PYTHON| Text Boxes In Python | Tutorial#17 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Minati panda 17 mars 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 158 fois et il a aimé like téléspectateurs. Bon visionnage!