# ztk > Tk rebuilt in Zig on the ztcl interpreter. A script uses the Tk 8.6 commands, and ztk draws it with CSS styles: on Wayland, on Windows with Direct3D 12, and in a browser with WebGPU or WebGL 2. An agent can see and drive the window it builds: ztk::snapshot gives a PNG of a widget, ztk::tree gives each widget with its class and its box, and ztk::inject sends pointer and key events. `ztk --headless` runs a script with no display. ## Start - [Overview](https://beetlebug.org/ztk/overview/) - [Install](https://beetlebug.org/ztk/install/) - [Quick start](https://beetlebug.org/ztk/quickstart/) - [For agents](https://beetlebug.org/ztk/agents/) - [Watch it get built](https://beetlebug.org/ztk/replay/) - [Runs on ztk](https://beetlebug.org/ztk/apps/) - [Python tkinter](https://beetlebug.org/ztk/python-tkinter/) ## Widgets - [All widgets](https://beetlebug.org/ztk/widgets/) - [Toys](https://beetlebug.org/ztk/toys/) - [Lamplighter: the design](https://beetlebug.org/ztk/toys/lamplighter/) - [Skate Pond: the design](https://beetlebug.org/ztk/toys/skatepond/) - [Tin Moon: the design](https://beetlebug.org/ztk/toys/tinmoon/) - [Frames, labels, and buttons](https://beetlebug.org/ztk/widgets/basic/) - [Check and radio buttons](https://beetlebug.org/ztk/widgets/toggles/) - [Entry and spinbox](https://beetlebug.org/ztk/widgets/entry/) - [Scale and scrollbar](https://beetlebug.org/ztk/widgets/range/) - [Listbox](https://beetlebug.org/ztk/widgets/listbox/) - [Canvas](https://beetlebug.org/ztk/widgets/canvas/) - [Text](https://beetlebug.org/ztk/widgets/text/) - [Tree](https://beetlebug.org/ztk/widgets/tree/) - [Panes and tabs](https://beetlebug.org/ztk/widgets/panes/) - [Dialogs](https://beetlebug.org/ztk/widgets/dialogs/) - [Menus](https://beetlebug.org/ztk/widgets/menus/) - [Terminal](https://beetlebug.org/ztk/widgets/terminal/) - [Themed widgets (ttk)](https://beetlebug.org/ztk/widgets/ttk/) - [pack, grid, and place](https://beetlebug.org/ztk/widgets/geometry/) ## Guide - [Styling and themes](https://beetlebug.org/ztk/styling/) - [Animation](https://beetlebug.org/ztk/animation/) - [Debugging](https://beetlebug.org/ztk/debugging/) - [Debug a form](https://beetlebug.org/ztk/debugging/form/) - [On the web](https://beetlebug.org/ztk/web/) - [On Linux](https://beetlebug.org/ztk/linux/) - [On Windows](https://beetlebug.org/ztk/windows/) - [On macOS](https://beetlebug.org/ztk/macos/) - [Embed in Zig](https://beetlebug.org/ztk/embedding/) ## Commands - [All ztk:: commands](https://beetlebug.org/ztk/commands/) - [ztk::dnd](https://beetlebug.org/ztk/commands/dnd/) - [ztk::tray and ztk::has](https://beetlebug.org/ztk/commands/tray/) - [ztk::taskbar, recent, hotkey](https://beetlebug.org/ztk/commands/taskbar/) - [ztk::win](https://beetlebug.org/ztk/commands/win/) - [ztk::limit and ztk::clock](https://beetlebug.org/ztk/commands/limit/) ## Project - [Performance](https://beetlebug.org/ztk/performance/) - [Differences from Tk](https://beetlebug.org/ztk/differences/) - [FAQ](https://beetlebug.org/ztk/faq/) - [Changelog](https://beetlebug.org/ztk/changelog/) - [Contributing](https://beetlebug.org/ztk/contributing/) - [Security](https://beetlebug.org/ztk/security/) ## For agents - [API index](https://beetlebug.org/ztk/api.json): each command, and each widget command with its options and their defaults, from the build of the site. - [Full text](https://beetlebug.org/ztk/llms-full.txt): the Markdown of each page above.