Python Tkinter Label in Frame
<p>I want to place a label inside a frame in tkinter, but I can't figure out how to actually get it inside.</p>

<pre><code>import tkinter
from tkinter import *

W=tkinter.Tk()
W.geometry("800x850+0+0")
W.configure(background="lightblue")

FRAME=Frame(W, width=100, height =50).place(x=700,y=0)

LABEL=Label(FRAME, text="test").pack()
</code></pre>

<p>When I run this, it doesn't place the Label inside the frame, but just places it normally on the window.
What am I doing wrong?</p>

<p>I think it's because you're assigning <code>FRAME</code> to <code>Frame(W, width=100, height =50).place(x=700,y=0)</code>, as opposed to just the actual frame, and according to the <a href="http://effbot.org/tkinterbook/place.htm" rel="nofollow">Place Manager reference</a>, there doesn't seem to be a return value. Try this:</p>

<pre><code>import tkinter
from tkinter import *

W=tkinter.Tk()
W.geometry("800x850+0+0")
W.configure(background="lightblue")

FRAME=Frame(W, width=100, height =50)
FRAME.place(x=700,y=0)

LABEL=Label(FRAME, text="test").pack()

W.mainloop()
</code></pre>

python tkinter label frame