Widgets

ztk has the widgets below today. Each one has the commands and the options of Tk 8.6, and the modern theme gives it its look. Each card below opens the live snippet of the widget: edit its code, and the window next to it runs the code as you type. Differences from Tk lists what each widget lacks.

Page Widgets and commands
Frames, labels, and buttons frame, label, button, labelframe, message, toplevel, grab, ztk::tooltip
Check and radio buttons checkbutton, radiobutton, the switch and the segmented control
Entry and spinbox entry, spinbox, placeholders, the search field, validation, undo, clipboard
Scale and scrollbar scale, scrollbar, the mouse wheel
Listbox listbox, the sidebar style
Canvas canvas with all item types, image create photo
Text text, tags, marks, undo
Tree ttk::treeview, columns, the sidebar style
Panes and tabs panedwindow, ttk::panedwindow, ttk::notebook
Dialogs tk_messageBox, tk_dialog, tk_chooseColor, the file dialogs, ztk::toast, the banner style
Menus menu, menubutton, ttk::menubutton, tk_popup, the menu bar
Terminal ztk::terminal, a terminal emulator on libghostty-vt, with scrollback, the shell of ztcl, and a pseudo-terminal
Themed widgets (ttk) ttk::button, ttk::checkbutton, ttk::radiobutton, ttk::label, ttk::frame, ttk::labelframe, ttk::entry, ttk::separator, ttk::sizegrip
pack, grid, and place The three geometry managers

bind, bindtags, event generate, focus, wm, winfo, and tk work as in Tk. Styling and themes and Animation cover the look and the motion.

Open the gallery in the playground to try each widget.