title: Tkinter: Center label in frame of fixed size?
body: <p>I am trying to create a frame of fixed size and place a text label in the center. I am not sure why this isn't working. I want the frame in the top left of the master frame, so NW is specified and that works fine. But changing the sticky direction of the label doesn't do anything. Help is appreciated.</p>
  
  <pre><code>self.f = Frame(self.master,bg="yellow",width=50,height=50)
  self.f.grid(row=0,column=0,sticky="NW")
  self.f.grid_propagate(0)
  self.f.update()
  self.l = Label(self.f,text="123",anchor="center",bg="yellow")
  self.l.grid(column=0,row=0,sticky="wens")
  </code></pre>