# entry widget = textbox that accepts a single line of user input from tkinter import * def submit(): username = entry.get() #gets entry text print("Hello "+username) def delete(): entry.delete(0,END) #deletes the line of text def backspace(): entry.delete(len(entry.get())-1,END) #delete last character window = Tk() window.title("user input") label = Label(window,text="username: ") label.config(font=("Consolas",30)) label.pack(side=LEFT) submit = Button(window,text="submit",command=submit) submit.pack(side = RIGHT) delete = Button(window,text="delete",command=delete) delete.pack(side = RIGHT) backspace = Button(window,text="backspace",command=backspace) backspace.pack(side = RIGHT) entry = Entry() entry.config(font=('Ink Free',50)) #change font entry.config(bg='#111111') #background entry.config(fg='#00FF00') #foreground entry.config(width=10) #width displayed in characters #entry.insert(0,'Spongebob') #set default text #entry.config(state=DISABLED) #ACTIVE/DISABLED #entry.config(show='*') #replace characters shown with x character entry.pack() window.mainloop()
@surferkwsurferkw8910 Жыл бұрын
clear, easy to understand and very useful tutorial. Great!
@joyomanda3753 ай бұрын
Thanks a lot! ☺
@akuncoba843 жыл бұрын
Ok. your video, helped me... Thankfull
@lw_w33 жыл бұрын
Thank you my brother i from iraq i abaric you helo me now thank you i like you and i Subscribe to your channel
@mikemurphy18963 жыл бұрын
How would I get multiple user data entry inputs and display those inputs on a separate text line? Maybe even type out simultaneously on that separate line as well, in GUI format? Thanks. Your vids are great!!!
@Mikodereje24 күн бұрын
Wow🎉🎉🎉🎉🎉
@hydarhydar23384 күн бұрын
❤
@leum52722 жыл бұрын
Can we make a backspace command on label
@No-t-h-i-n-g Жыл бұрын
TypeError: expected string or bytes-like object, got 'dict'
@alemkiros78882 жыл бұрын
wow!
@thanthanthanthan97423 жыл бұрын
Thanks bro
@XMegaJuni3 жыл бұрын
I get an error that self.tk.cakk(_tkinter.TclError: can't invoke "button" command: Application has been destoryed
@hillybankok3 жыл бұрын
you need to name the button() to Button() with caps
@SteinarJacobsen-yl6su7 күн бұрын
Young Maria Johnson Elizabeth Brown Matthew
@user-fn3xp7mk3e4 жыл бұрын
The name of the porgram you imagined by video
@dishant_75 ай бұрын
Super helpful. ❤
@Sheharyar69420Ай бұрын
Wow!
@deepdaddy12084 жыл бұрын
how is going bro
@BroCodez4 жыл бұрын
hey!
@deepdaddy12084 жыл бұрын
@@BroCodez keep those videos coming, i know you might not get the views you want yet but some of us enjoy them
@econtutor10 Жыл бұрын
super! is there a way to also show py console output in a ttk widget?
@YouGotCAGEDyt2 жыл бұрын
This feels me like gigachad is behind pc lol
@NameEnter-nj1cx Жыл бұрын
do you have videos about padX and padY?
@vedant__kadu3 жыл бұрын
Is there any way that I can add some text with the entry widget for user to know what to enter? like a placeholder or something