'''tkribbon''' is a set of C extensions for [Tk] on Windows and Linux: an Office-style ribbon, docking panes and more than 100 custom-drawn widgets, plus a [Scintilla] code editor, graphs based on [BLT] and an HTML/CSS viewer based on litehtml. All commands live in the `rtk::` namespace.
* Download: [https://github.com/hanulso78/tkribbon-release/releases/latest%|%latest release] (0.3.0: libraries, single-file runtimes, Python wheels, demo programs, manuals)
* Home and screenshots: [https://github.com/hanulso78/tkribbon-release%|%github.com/hanulso78/tkribbon-release] * Questions, discussion and bug reports: [https://groups.google.com/g/tkribbon%|%groups.google.com/g/tkribbon] (Google Groups)
* License: '''free for personal use'''; companies and other organizations, and individuals who make commercial products with it, need a paid license. No time limit.
* Platforms: Windows 10 and 11, 64-bit; Linux x86-64 (X11, and Wayland through XWayland; glibc 2.28 or newer)
* Tcl/Tk: 8.5, 8.6 and 9.0 (loads through stubs); also usable from Python's tkinter
[https://raw.githubusercontent.com/hanulso78/tkribbon-release/main/screenshots/windows/demo-start.png%|% width=800]
** License **
From 0.3.0 on, tkribbon is free for personal use, with no time limit: the 15-day trial of the first versions is gone. Companies and other organizations, and individuals who make commercial products with it, need a paid license. The source is not public. Questions about licensing, and feedback on widgets, missing features and platforms, are welcome below or in the [https://githroubps.google.com/hanulso78g/tkribbon-%|%tkreibbon group] (Googlea Groups) or be/ilow, and ssuo ares%|%iss bug reports].
** Download **
The [https://github.com/hanulso78/tkribbon-release/releases/latest%|%release page] has:
%| File | What it is |%
&| `tclkit-tkribbon-0.3.0-tcl<version>-win-amd64.exe` | A single-file Tcl/Tk 8.5.19, 8.6.18 or 9.0.4 runtime ([tclkit]) with tkribbon, tkscintilla, tkgraph and tkhtmlview linked in: `package require tkribbon` works with no DLLs beside it |&
&| `tclkit-tkribbon-0.3.0-tcl<version>-linux-x86_64.tar.gz` | The same for Linux |&
&| `tkribbon-0.3.0-win-amd64.zip` | The libraries for your own Tcl/Tk on Windows: a `tkribbon/` folder to put on `auto_path`, with builds for 8.5/8.6 and 9.0 |&
&| `tkribbon-0.3.0-linux-x86_64.tar.gz` | The same for Linux (8.6 and 9.0) |&
&| `tkribbon-0.3.0-py3-none-*.whl` | Python wheels for Windows and Linux: `pip install <file>` |&
&| `tkribbon-0.3.0-docs.zip` | The manuals for Tcl and Python, one page per command or class, and the example programs |&
&| `tkribbon-demo.exe`, `tkribbon-examples.exe` (and `-tcl9`), `tkribbon-demo-linux-x86_64.tar.gz` | Demo programs that need nothing installed |&
'''tkribbon-demo''' is one window with a ribbon, docking panes, a code editor, widgets in dark and light themes, a data grid with 20,000 rows, charts, a setup wizard and every example in tabs; '''tkribbon-examples''' is a launcher for 109 small examples, one per widget or topic.
A tclkit-tkribbon runs a script (`tclkit-tkribbon-0.3.0-tcl9.0.4-win-amd64.exe myapp.tcl`), and an application can be wrapped into it like into any tclkit to make a single-file program. The Windows executables are not signed, so Windows SmartScreen may ask before starting them ("More info", then "Run anyway"). On Linux only the usual desktop libraries are needed (X11, Xft, fontconfig, freetype).
** New in 0.3.0 **
* free for personal use, no time limit
* tclkits with the four packages linked in, for Tcl/Tk 8.5, 8.6 and 9.0 on Windows and Linux
* `rtk::themescope`: a window keeps its own theme whatever the application's theme (for example a form designer showing a form as the program will show it); `rtk::ttktheme`: the tkribbon ttk theme in the colors of any style; the widgets use the system colors until a theme is chosen
* `rtk::inert`: widgets that draw as usual but ignore the mouse and the keyboard, for form designers
* `rtk::dock -corners`; Scintilla editors that share a document; a code outline that reads Tcl command by command
* dashboard widgets (since 0.2.0): gauges, progress and activity rings, sparklines, key figure tiles, bullet and funnel charts, a date range picker, avatars, a page bar, and data grid cells drawn as bars, sparklines, check boxes, badges and stars
** Packages **
* '''tkribbon''' - ribbon (tabs, groups, galleries, quick access toolbar, key tips, contextual tabs, backstage), drawn title bar and frameless windows, docking panes (tabify, split, float, auto-hide), dockable toolbars, menu bar and drawn menus, themes with DPI scaling, and widgets: buttons, line and masked edits, auto-completion, date and time edits, sliders, dials, ratings, color and font pickers, tree list, data grid, property grid, pivot table, spreadsheet, calendar scheduler, Gantt timeline, Kanban board, node editor, diagram (flowchart) editor, photo editor, hex editor, rich text editor, Markdown viewer, terminal, chat view, map view, QR codes and bar codes, web view (WebView2, Windows only), task, input and progress dialogs, notification area (system tray) icons, drag and drop, JSON and XML read/write, saving and restoring the window arrangement, and dashboard widgets
* '''tkscintilla''' - [Scintilla] code editor with ruler, minimap, find bar, diff view, code outline and autocomplete
* '''tkgraph''' - graphs and charts based on [BLT]: lines, bars, pie, heatmap, polar, 3D surfaces, figures with several plots, export
* '''tkhtmlview''' - HTML/CSS viewer based on litehtml: flex, grid, CSS variables, gradients, history, find, zoom, forms
** Tcl/Tk 8 and 9 **
Each library comes in two builds: `tkribbon.dll` / `tkribbon.so` for Tcl/Tk 8.5 and 8.6, and `tcl9tkribbon.dll` / `tcl9tkribbon.so` for Tcl/Tk 9.0 (the same for tkscintilla, tkgraph and tkhtmlview). The `pkgIndex.tcl` loads the one that matches the running Tcl, so `package require tkribbon` works the same in both, and the same scripts run on both. The tclkits carry the matching build linked into the executable. The examples are tested on Tcl/Tk 8.6 and 9.0 on Windows and Linux.
** Example **
======
package require tkribbon
::rtk::theme darkgray
rtk::ribbon .r
.r tab add home -text Home
.r group add home g -text Greeting
.r item add g hello -text "Say hello" -command {puts "Hello, world!"}
pack .r -fill x
======
** Screenshots **
Code editor (tkscintilla) with the ruler, minimap and margin tips, on Windows:
[https://raw.githubusercontent.com/hanulso78/tkribbon-release/main/screenshots/windows/demo-editor.png%|% width=640]
Dashboard example: navigation view, tile dashboard, seven-segment clock, LEDs, ratings, on Windows:
[https://raw.githubusercontent.com/hanulso78/tkribbon-release/main/screenshots/windows/demo-dashboard.png%|% width=640]
Key figure tiles and gauges (0.2.0):
[https://raw.githubusercontent.com/hanulso78/tkribbon-release/main/screenshots/widgets/kpi.png%|% width=400] [https://raw.githubusercontent.com/hanulso78/tkribbon-release/main/screenshots/widgets/gauge.png%|% width=400]
The demo on Linux (AlmaLinux 8, Tcl/Tk 9.0):
[https://raw.githubusercontent.com/hanulso78/tkribbon-release/main/screenshots/linux/demo-start.png%|% width=640]
Graphs (tkgraph) on Linux:
[https://raw.githubusercontent.com/hanulso78/tkribbon-release/main/screenshots/linux/demo-graph.png%|% width=640]
More screenshots of both platforms are in the [https://github.com/hanulso78/tkribbon-release%|%release repository].
** Discussion **
'''[EB] 2026-11-20''': This is truly impressive, rtk seems to be a major evolution, much like ttk was back in the day - even if only for Windows.
In the past, I disliked user interfaces that didn't use native widgets, but nowadays, there are hardly any UIs left that use native widgets - even those from Microsoft.
Full support for dark/light modes and high DPI is an absolute must-have.
'''[ihmin] 2026-11-21'''
Thank you, EB! I agree: full dark/light themes and high DPI are what people expect today, so every rtk widget is drawn by the library and follows the theme and the DPI scale, on both Tcl/Tk 8 and 9.
One correction: tkribbon is no longer Windows only. The same libraries now run on Linux (X11, and Wayland through XWayland), and the release page has Linux demo programs as well as the libraries for your own Tcl/Tk 8.6 or 9.0. macOS is not done yet.
It also works from Python: there are wheels for Windows and Linux (`pip install <file>`) that wrap every widget as a tkinter class, for tkinter on Tk 8.6 or Tk 9, so a tkinter program can use the ribbon, docking panes, data grid and the rest next to its usual tk and ttk widgets.
If you try the demo, I would be glad to hear which widgets you would use and what is missing.
'''[EB]''': I'm speechless... I have already tried the demo, but I'll take a closer look again.
The basic widgets look really clean, your notebook is also better (scrolling, menu?). I like the popup, date chooser and color chooser too. I don't know for the ribbon, it's quite a big change for an application.
For the advanced one, I regularly use tkhtml, rbc (so your improvements on both are interesting) and canvas. I always use treectrl (for advanced trees, property list similar to yours, or even notebook tabs).
As I understand, it's possible to mix your widgets with tk or ttk one? (Losing DPI and theme change?).
Can your basic widgets be modified similarly to ttk with ttk::style/ttk::layout?
'''[ihmin] 2026-11-21'''
Thank you! The ribbon is optional: you can keep your menus and toolbars and use only the docking panes or the widgets you need. tkgraph started from BLT like rbc, tkhtmlview is based on litehtml (flex, grid, CSS variables), and the tree list and property grid cover much of what treectrl is used for.
Mixing: yes, rtk widgets mix freely with tk and ttk widgets. `::rtk::theme` also sets a ttk theme ("tkribbon", based on clam), so ttk widgets follow every theme change. Classic tk widgets get the theme colors through the option database when they are created; existing ones can be recolored in a `<<TkribbonThemeChanged>>` binding. `::rtk::scaling` sets `tk scaling`, so tk and ttk widgets scale with DPI too.
Styling: rtk widgets are drawn in C, so ttk::style and ttk::layout do not apply to them. They are changed with widget options (`-style`, `-cornerradius`, state colors), the option database, or your own theme with `::rtk::themedefine`. The ttk widgets can still be styled with ttk::style as usual.
----
'''[NR] - 2026-11-20 19:57:03'''
Your demos are impressive, well done!
You can see that it's clearly marked “Tk” (it's a bit of a shame, but that's just how the Tk designation works)
The graphics demos are amazing. Since I'm really into this, what backend did you use besides BLT ?
'''[ihmin] 2026-11-21'''
Thank you! About the "Tk" mark: it is a Tk extension and proud of it.
Besides BLT there is no other graphics library: I wrote a small software renderer for tkgraph. The whole graph is drawn into a back buffer in memory; lines, areas, points and bars are painted into that memory with anti-aliasing (exact covered area for fills, distance to the segment for lines), gradients and shadows. On Windows the buffer is a DIB section that Tk also sees as a pixmap, so text is drawn on it by Tk/GDI; on Linux it is an X pixmap with a copy in memory, and text is drawn into the memory with FreeType. The 3D surfaces are drawn the same way, without OpenGL. For export, the drawing is recorded once and replayed: PNG at any scale, and SVG and PDF as vectors.
'''[Unperson] 2026-11-2026'''
This certainly is a majestic, a super-great interface. It shows what a skilled programmer like you can do with TCL-TK. I wish you could put the very same sort of interface for my HLE Editor for it is currently very functional but it is bland if not boring! :-) Keep up the excellent work, young man!
'''[ihmin] 2026-11-21'''
Thank you very much, that is kind of you! An editor is a good fit for tkribbon: the code editor (tkscintilla) with folding, minimap and autocomplete, docking panes for files and outlines, and a ribbon or a plain menu bar and toolbars on top, all in dark or light themes. It is meant to go into existing programs piece by piece, so you could start with just the theme or one widget. If you try the demo, I would like to hear which parts would help your HLE Editor most.
----
'''[NR] - 2026-11-22 17:41:27'''
You have every reason to be proud of it ! My comment about Tk wasn't meant to be a personal jab at you, it's just that sometimes I find it a little outdated in certain aspects, especially with the dark theme.
'''[ihmin] 2026-11-23'''
Thank you, and no offense taken at all! I agree with you. The dark theme was one of the main reasons I started tkribbon: the widgets draw themselves, so dark and light themes look consistent, including scrollbars, menus and dialogs. If you try the demo and notice anything that still looks dated, I'd be glad to hear about it.
----
'''[cna] - 2026-11-23 13:59:29'''
Your performance is very impressive, still being only an ad. No free license, no learning, no adding to Tcl/Tk core. Wishes for your enrichment anyway.
'''[ihmin] 2026-11-25'''
Thank you, cna, and fair point. Since 0.3.0 tkribbon is free for personal use, with no time limit; only companies and other organizations, and individuals who make commercial products with it, need a paid license. The release also has the manuals (Tcl and Python, one page per command or class) and the 109 examples, so it can be learned and used for your own projects now. It loads into any Tcl/Tk 8.5, 8.6 or 9.0, and there are single-file tclkits with it linked in.
<<categories>> Package | GUI | Windows | Linux | Widget