sidebar.pack(expand=True, fill='both', side='left', anchor='nw')
mainarea = tk.Frame(root, bg='#CCC', width=500, height=500)
mainarea.pack(expand=True, fill='both', side='right')
How do I make a resizeable window with a sidepanel and content area?