# -*- coding: utf-8 -*- import tkinter as tk import tkinter.ttk as ttk root = tk.Tk() root.title("tk32.py") root.geometry("300x150") ##################################### pw = tk.PanedWindow(root, bg = 'green', bd = 5) pw.pack() pw.add(tk.Entry(pw, bd = 5)) pw.add(tk.Button(pw, text = 'Button', bd = 5)) pw.add(tk.Label(pw, text = 'Label', bd = 5)) ttk.Style().configure('TPanedwindow', background = 'pink') tpw = ttk.PanedWindow(root, orient = 'horizontal') tpw.pack(side = tk.BOTTOM) tpw.add(ttk.Entry(tpw)) tpw.add(ttk.Button(tpw, text = 'Button')) tpw.add(ttk.Label(tpw, text = 'Label')) ##################################### root.mainloop()