r/Python • • 20d ago

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

29 Upvotes

148 comments sorted by

View all comments

1

u/Subject-Night477 4d ago

tkribbon: Office-style ribbon, docking panes and 60+ C widgets for tkinter (Windows and Linux)

tkribbon adds widgets that tkinter does not have, drawn in C so they stay fast with large data, and they work next to the usual tk and ttk widgets:

  • Office-style ribbon (tabs, groups, galleries, quick access toolbar, key tips) and a drawn title bar
  • docking panes like an IDE: tabify, split, float, auto-hide, save and restore the layout
  • data grid (sorting, filtering, grouping, editing; 20,000 rows without lag), tree list, property grid, pivot table
  • Scintilla code editor with syntax colors, folding, minimap and autocomplete
  • line, bar, pie, polar, heatmap and 3D charts
  • scheduler, Gantt timeline, Kanban board, node editor, Markdown and HTML views, terminal, and more
  • dark and light themes, DPI scaling, task/input/progress dialogs, tray icons
import tkinter as tk
import tkribbon as rtk

root = tk.Tk()
rtk.theme("darkgray")
ribbon = rtk.Ribbon(root)
ribbon.tab.add("home", text="Home")
ribbon.group.add("home", "greeting", text="Greeting")
ribbon.item.add("greeting", "hello", text="Say hello", command=lambda: print("Hello, world!"))
ribbon.pack(fill="x")
root.mainloop()

Wheels for Windows (64-bit) and Linux x86-64 (glibc 2.28+), Python 3.8 or newer; they work with tkinter on Tk 8.6 and on Tk 9. There are also demo programs that need nothing installed. The same library works from Tcl/Tk.

It is planned as a commercial product, so the files are a free time-limited demo (15 days) and the source is not public yet. Comments on the widgets, missing features and licensing are welcome.

Screenshots and downloads: https://github.com/hanulso78/tkribbon-demo