Mega Code Archive

 
Categories / Python / GUI Tk
 

Label width and height

from Tkinter import * root = Tk() labelfont = ('times', 20, 'bold')                   widget = Label(root, text='Hello config world') widget.config(height=3, width=20) widget.pack(expand=YES, fill=BOTH) root.mainloop()