[Tutor] Tkinter canvas on frame
Phil
phillor9 at gmail.com
Sun Feb 27 19:51:50 EST 2022
On 28/2/22 11:22, Alan Gauld via Tutor wrote:
>>>> from tkinter import *
>>>> top = Tk()
>>>> f = Frame(top,background="blue")
>>>> f.pack(expand=True)
>>>> b = Button(f, text='Hello World')
>>>> b.pack(anchor='center', padx=10,pady=10)
> Is that what you mean?
Yes, so long as fill=both is include which is what I already have and I
cannot see where my code differs from yours except for the inclusion of
canvas. I wonder if canvas is the problem? I'll work on and see.
--
Regards,
Phil
More information about the Tutor
mailing list