from __future__ import annotations

import tkinter as tk
from tkinter import ttk


def titled_frame(parent: tk.Misc, title: str) -> ttk.LabelFrame:
    frame = ttk.LabelFrame(parent, padding=(12, 10))
    frame.configure(labelwidget=ttk.Label(frame, text=title, style="TimelineHeader.TLabel"))
    return frame
