Config Label for its background, font and size : Label : Tkinker PYTHON TUTORIALS


PYTHON TUTORIALS » Tkinker » Label »

 

Config Label for its background, font and size


Config Label for its background, font and size
from Tkinter import *
root = Tk()
labelfont = ('times', 20'bold')
widget = Label(root, text='Hello config world')
widget.config(bg='black', fg='yellow')  
widget.config(font=labelfont)           
widget.config(height=3, width=20)       
widget.pack(expand=YES, fill=BOTH)
root.mainloop()



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Tkinker
» Label