Python 3 Programming Tutorial - Tkinter adding buttons

preview_player
Показать описание
In this tutorial, we cover adding buttons to our tkinter window. Adding buttons is very simple, and we can also begin to add events to these buttons.

Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6
Рекомендации по теме
Комментарии
Автор

I've spent 3-5 hours getting syntax errors on how to make a mother flubbin button from my textbook and textbook videos and FINALLY I HAVE A BUTTON, THANK YOU *SO* MUCH

Theterra
Автор

can you explain this line deeper. thank you

self.pack(fill=BOTH, expand=1)

fa
Автор

How do I add multiple buttons in different groups?

RonZhang
Автор

Hi it is very good series but i am wondering if you could share some clips to explain detail usage of QT designer for complex GUI development or even maybe project based development for a series. I am really interested to learn it but there is very very less learning material about it.Would be great if you consider it 

mohammadrezarajabi
Автор

Why do you use the method starting on line 2? Instead of the method shown in Tkinters actual modual example?? I have been seeing both types, please someone?

drmayne
Автор

How would you create a stack of buttons?

donalmoloney
Автор

can we use % for x and y? for example (x = 50%, y = 50%) ?

nictuniema
Автор

wats after text for the quitButton I ant read it bcus u put your thing their?

hereticstanlyhalo
Автор

Also the button doesn't show up on mine and I had to do before the mainloop thing at end
root.title("Title")

hereticstanlyhalo
Автор

any chance u can do some more tkinter tuts from begginer up please :)

Paul-wxuc
Автор

+sentdex tkinter is not present by default? not downloading via pip as well

gotel
Автор

one question: what does '.master' or '.title' or '.mainloop' or 'self' do? I mean, why do we put it here, where does it come? and what does it do?

STEVENopticus
Автор

How can i make a image to act as a button?

danielrojas
Автор

i copied mine exactly but as usual it doesn't work. it says that line 3 frame is not defined.
pls can you help

irailmygirlfriendeverynigh
Автор

I have checked over and over and I got all the same code but for some reason when I run the program it gives me this error: "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firewall software is blocking the connection."

elderenderman
Автор

I trıed to wrıte the codeç After some trıals, I decided to copy your code. now, I see the window but not the button. Do you know why that? :)

mohamedgabr
Автор

every time i type my code and then run module, python shell also opens along with the tkinter window. in the window i see this is not the case. anyone ?

pranavmishra
Автор

Just an FYI and suggestion: The title of this video is "Python 3 Programming Tutorial - Tkinter adding buttons" and is missing the #Number. It would be great to know which number I am on, so I can go look for the following sequential video.

greglowedesign
Автор

I can see the form window but no buttons. Also I got this traceback:
Traceback (most recent call last):
File "E:\Python\Sentdex\Examples\028TkinterButton.py", line 30, in <module>
app=window(root)# our frame is going to be our root
File "E:\Python\Sentdex\Examples\028TkinterButton.py", line 9, in __init__
Frame.___init__(self, master)
AttributeError: type object 'Frame' has no attribute '___init__'

Is there a solution for this?
Thank you :)

mohamedgabr
Автор

can we generate a button without a window

hariharanbalasubramanianpr