Label on frame
from Tkinter import *
root = Tk()
#root.option_readfile('optionDB')
root.title('Canvas')
canvas = Canvas(root, width =400, height=400)
img = PhotoImage(file='./logo.gif')
frm = Frame(canvas, relief=GROOVE, borderwidth=2)
Label(frm, text="Label").pack()
canvas.create_window(285, 280, window=frm, anchor=CENTER)
canvas.pack()
root.mainloop()
Related examples in the same category