import tkinter as tk
window = tk.Tk()
window.geometry('600x800')
frame1 = tk.Frame(master=window, bg="green")
frame1.pack(fill=tk.BOTH, side=tk.LEFT, expand=True)
window.mainloop()
Объяснение:
import tkinter as tk
window = tk.Tk()
window.geometry('600x800')
frame1 = tk.Frame(master=window, bg="green")
frame1.pack(fill=tk.BOTH, side=tk.LEFT, expand=True)
window.mainloop()
Объяснение: