Skip to content

Python examples

Every example is a complete program, verified against the real NativeHTMLKit host. Open one to see a screenshot, how to run it and its full source.

Example What it does
Hello The smallest complete app: a greeting form that writes untrusted text safely.
Counter A counter with a step selector, limits and a bounded change history.
Todo list Add, edit, complete, filter and delete tasks, saved to a JSON file.
Sign-up form Sign-up form with native constraint validation, a password-match rule, an error summary and a result.
Inventory data table Searchable, sortable, paged table rendered from data, with a details pane.
Process viewer Sortable, filterable table of running processes.
Log viewer Follows a growing log file with highlighting, pause, clear and auto-scroll.
File viewer Text file viewer and editor with native Open, Save As and Choose Folder dialogs.
Multiple windows Note windows managed from a main window, with a close veto for unsaved notes.
Settings dialog Settings in a modal HTML dialog, saved to JSON: colour scheme, text size and reduced motion.
Clipboard tool Text transforms, copy and paste, a documentation link and the desktop colour scheme.
Checksums SHA-256 of every file in a folder, computed in the background with progress, cancel and a quit warning.
Live chart A live line chart of memory use drawn into an RGBA bitmap.
Snippet editor A snippet editor with keyboard shortcuts, Tab indentation and a help popover.
About and support An About/Support window: capabilities, preferences, counters and a support bundle.
DOM explorer Tree view of a live DOM with selecting, editing, moving and deleting nodes.
Focus timer A countdown timer that asks before quitting while it runs.
Background jobs Concurrent jobs with progress bars and cancel buttons.
Bulk rename Rename many files with find/replace, a live preview, a confirmation dialog and undo.
Process dashboard Live process monitor that refreshes in the background, with filter, sort, pause and copy.
Async counter A counter whose callback is an async function (asyncio basics).