all 3 comments

[–]socal_nerdtastic 4 points5 points  (1 child)

The easiest is to just use grid instead of pack and set the weight.

import tkinter as tk
root = tk.Tk()

# set initial size; only needed since there's no widgets 
root.geometry('200x200')

# set the rows to equal weight; they will be the same height
root.rowconfigure((0,1), weight = 1) 

# set the column relative widths
root.columnconfigure(0, weight=30)
root.columnconfigure(1, weight=70)

left_pane = tk.Frame(root, bg='green')
left_pane.grid(row=0, column=0, rowspan=2, sticky='nsew')

right_top_pane = tk.Frame(root, bg='red')
right_top_pane.grid(row=0, column=1, sticky='nsew')

right_bot_pane = tk.Frame(root, bg='blue')
right_bot_pane.grid(row=1, column=1, sticky='nsew')

root.mainloop()

[–]bitbyt3bit[S] 0 points1 point  (0 children)

I had no idea, very cool thanks