Mega Code Archive

 
Categories / Python Tutorial / Tkinker
 

Set controls properties through dictionary syntax

from Tkinter  import * widget = Label() widget['text'] = 'Hello GUI world!'  widget.pack(side=TOP) mainloop()