Config a button for its cursor background, font and border : Button : Tkinker PYTHON TUTORIALS


PYTHON TUTORIALS » Tkinker » Button »

 

Config a button for its cursor background, font and border


Config a button for its cursor background, font and border
from Tkinter import *
widget = Button(text='Spam', padx=10, pady=10)
widget.pack(padx=20, pady=20)
widget.config(cursor='gumby')
widget.config(bd=8, relief=RAISED)
widget.config(bg='dark green', fg='white')
widget.config(font=('helvetica', 20'underline italic'))
mainloop()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Tkinker
» Button