Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tkinter as tk
- base = 75
- w_ratio = 3
- h_ratio = 4
- width = w_ratio*base
- height = h_ratio*base
- screen = f"{width}x{height}+300+400"
- window = tk.Tk()
- window.title("App004")
- window.geometry(screen)
- frame01 = tk.Frame(bg="grey", height=height//4)
- frame01.pack(fill="both")
- frame02 = tk.Frame(bg="orange", width=width//2)
- frame02.pack(fill="both", expand=True)
- frame03 = tk.Frame(frame02, bg="blue", width=width//2, height=3*height//4)
- frame03.pack(side="right", fill="y")
- frame04 = tk.Frame(frame03, bg="black", width=width//2, height=3*height//16)
- frame04.pack(side="bottom")
- window.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement