# 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()
@user-botlol2 ай бұрын
Thank you so much bro
@surferkwsurferkw8910 Жыл бұрын
clear, easy to understand and very useful tutorial. Great!
@akuncoba844 жыл бұрын
Ok. your video, helped me... Thankfull
@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!!!
@joyomanda3756 ай бұрын
Thanks a lot! ☺
@dishant_78 ай бұрын
Super helpful. ❤
@AgmagusOkanm2 ай бұрын
Great, man!
@rubenquintanilla68122 ай бұрын
Hello! i have a question... why create the function backspace? we can use backspace key ._.
@tarunks1520Ай бұрын
just to learn bro :)
@rubenquintanilla6812Ай бұрын
@@tarunks1520 oh thanks! :D
@econtutor102 жыл бұрын
super! is there a way to also show py console output in a ttk widget?
@glensonwilsondsouza7218 Жыл бұрын
Amazing Broooo!!!
@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
@NameEnter-nj1cx2 жыл бұрын
do you have videos about padX and padY?
@leum52722 жыл бұрын
Can we make a backspace command on label
@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
@YouGotCAGEDyt2 жыл бұрын
This feels me like gigachad is behind pc lol
@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
@Mikodereje4 ай бұрын
Wow🎉🎉🎉🎉🎉
@No-t-h-i-n-g Жыл бұрын
TypeError: expected string or bytes-like object, got 'dict'
@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