Learn Python tkinter GUI user input easy ⌨️

  Рет қаралды 31,712

Bro Code

Bro Code

Күн бұрын

Пікірлер: 29
@BroCodez
@BroCodez 4 жыл бұрын
# 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
@surferkwsurferkw8910 Жыл бұрын
clear, easy to understand and very useful tutorial. Great!
@joyomanda375
@joyomanda375 3 ай бұрын
Thanks a lot! ☺
@akuncoba84
@akuncoba84 3 жыл бұрын
Ok. your video, helped me... Thankfull
@lw_w3
@lw_w3 3 жыл бұрын
Thank you my brother i from iraq i abaric you helo me now thank you i like you and i Subscribe to your channel
@mikemurphy1896
@mikemurphy1896 3 жыл бұрын
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!!!
@Mikodereje
@Mikodereje 24 күн бұрын
Wow🎉🎉🎉🎉🎉
@hydarhydar2338
@hydarhydar2338 4 күн бұрын
@leum5272
@leum5272 2 жыл бұрын
Can we make a backspace command on label
@No-t-h-i-n-g
@No-t-h-i-n-g Жыл бұрын
TypeError: expected string or bytes-like object, got 'dict'
@alemkiros7888
@alemkiros7888 2 жыл бұрын
wow!
@thanthanthanthan9742
@thanthanthanthan9742 3 жыл бұрын
Thanks bro
@XMegaJuni
@XMegaJuni 3 жыл бұрын
I get an error that self.tk.cakk(_tkinter.TclError: can't invoke "button" command: Application has been destoryed
@hillybankok
@hillybankok 3 жыл бұрын
you need to name the button() to Button() with caps
@SteinarJacobsen-yl6su
@SteinarJacobsen-yl6su 7 күн бұрын
Young Maria Johnson Elizabeth Brown Matthew
@user-fn3xp7mk3e
@user-fn3xp7mk3e 4 жыл бұрын
The name of the porgram you imagined by video
@dishant_7
@dishant_7 5 ай бұрын
Super helpful. ❤
@Sheharyar69420
@Sheharyar69420 Ай бұрын
Wow!
@deepdaddy1208
@deepdaddy1208 4 жыл бұрын
how is going bro
@BroCodez
@BroCodez 4 жыл бұрын
hey!
@deepdaddy1208
@deepdaddy1208 4 жыл бұрын
@@BroCodez keep those videos coming, i know you might not get the views you want yet but some of us enjoy them
@econtutor10
@econtutor10 Жыл бұрын
super! is there a way to also show py console output in a ttk widget?
@YouGotCAGEDyt
@YouGotCAGEDyt 2 жыл бұрын
This feels me like gigachad is behind pc lol
@NameEnter-nj1cx
@NameEnter-nj1cx Жыл бұрын
do you have videos about padX and padY?
@vedant__kadu
@vedant__kadu 3 жыл бұрын
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
@glensonwilsondsouza7218
@glensonwilsondsouza7218 Жыл бұрын
Amazing Broooo!!!
@rohitbankar7437
@rohitbankar7437 7 ай бұрын
Awesome
Learn Python tkinter GUI checkboxes easy ✔️
12:49
Bro Code
Рет қаралды 5 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,5 МЛН
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 1,8 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 66 МЛН
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 88 МЛН
Using tkinter with classes
28:23
Atlas
Рет қаралды 65 М.
Learn Python tkinter GUI radiobuttons easy 🔘
12:22
Bro Code
Рет қаралды 23 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 309 М.
Understanding tkinter events
13:03
Atlas
Рет қаралды 13 М.
COMPUTER SCIENCE explained in 17 Minutes
16:49
Wacky Science
Рет қаралды 1,1 МЛН
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 1,8 МЛН