title: Python not displaying correct frame size
body: <p>I try to figure out some frames to obtain something like that:
  <a href="https://i.stack.imgur.com/finae.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>Problem is that the frame sizes are not displayed. Seems like sizes are not taken into account.
  I missed something ?
  Here is the code:</p>
  <pre><code>from tkinter import *
  from PIL import ImageTk, Image
  import os
  img_dir=os.getcwd()
  #Main window
  root=Tk()
  root.title('L-GEST')
  #root.attributes('-fullscreen', True)
  root.rowconfigure(0,weight=1)
  root.rowconfigure(1,weight=5)
  #Screen dimensions
  w,h=root.winfo_screenwidth(),root.winfo_screenheight()
  w2, h2=int(0.8*w),int(0.8*h)
  dimensions=str(w2)+&quot;x&quot;+str(h2)
  largeur, hauteur=str(w),str(h)
  #Resizing to 80%
  root.geometry(dimensions)
  #Top Frame
  bandeau=Frame(root, borderwidth=1,relief=RIDGE)
  bandeau.config(width=w2, height=100, bg='white')
  bandeau.pack(side=TOP)
  #Left side
  Logo_path=img_dir+'/'+'logo.jpg'
  Logo=Image.open(Logo_path)
  Logo=Logo.resize((200,100),Image.ANTIALIAS)
  Logo_load=ImageTk.PhotoImage(Logo)
  Logo_label=Label(bandeau,image=Logo_load)
  Logo_label.pack(side=LEFT)
  #Middle
  bandeau2_width=int(w2)-300
  Button(bandeau, text=&quot;w2 =&quot;+str(w2)+&quot;w2-300 = &quot;+str(bandeau2_width)).pack(fill='both', expand=True)
  # Right side
  Logo2_path=img_dir+'/'+'power.png'
  Logo2=Image.open(Logo2_path)
  Logo2=Logo2.resize((100,100),Image.ANTIALIAS)
  Logo2_load=ImageTk.PhotoImage(Logo2)
  Logo2_label=Label(bandeau,image=Logo2_load)
  Logo2_label.pack(side=RIGHT)
  
  
  #Bottom Frame
  main=Frame(root, borderwidth=1,relief=RIDGE)
  main.pack(fill='both', expand='YES')
  Label(main, text='main').pack()
  Label(main, text=&quot;main row 1&quot;).pack()
  root.mainloop()
  </code></pre>
  <pre><code>Could someone help ?
  </code></pre>