Coding_tuts

How to make a button with Python

How to make a button with Python

#If you have read the simple GUI tutorial 
def mybutton_Clicked():

       print('Button Clicked

myButton = ttk.Button(root, text='My Button', command= myButton_Clicked)

myButton.pack(ipadx=10, ipady=30, expand=True)

How do you rate this article?

0



Coding_tuts
Coding_tuts

Programming tutorials

Publish0x Publish0x

Reward the author with $0.01 in crypto, and earn yourself as you read!

20% to author / 80% to me.
Rewards are FREE. Publish0x pays them, not you.

Page not displaying correctly?