# -*- coding: utf-8 -*- import tkinter as tk import tkinter.ttk as ttk root = tk.Tk() root.title("tk31.py") root.geometry("300x150") ##################################### leftLF = tk.LabelFrame(root, text = "Left LabelFrame", bg = 'lightgreen') leftLF.pack(side = tk.LEFT, fill = tk.BOTH, expand = True) leftLb = tk.Label(leftLF, text = 'Left Label').pack() rightLF = ttk.LabelFrame(root, text = "right LabelFrame", labelanchor = tk.NE) rightLF.pack(side = tk.LEFT, fill = tk.BOTH, expand = True) rightLb = tk.Label(rightLF, text = 'Right Label').pack() ##################################### root.mainloop()