Tkinker Python Tutorial

from Tkinter  import *
     
canvas = Canvas(width=300, height=300, bg='white')   
canvas.pack(expand=YES, fill=BOTH)                   
     
widget = Label(canvas, text='Spam', fg='white', bg='black')
widget.pack()
canvas.create_window(100, 100, window=widget)       
mainloop()