Mega Code Archive

 
Categories / Python / GUI Tk
 

Add a label to the center of a frame

from Tkinter import * root = Tk() widget = Label(root) widget.config(text='Hello GUI world!')  widget.pack(side=TOP, expand=YES, fill=BOTH) root.title('gui1g.py') root.mainloop()