P5-tk-sugar

Jul 20, 2023

Sugar syntax for Tk

Tk is a great graphical toolkit to write desktop applications. However, one can get bothered with the constant typing of quotes and options. TkSugar provides handy subs for common options used when programming Tk.

Benefits are obvious

  • Reduced typing The constant need to type => and ‘’ is fine for one-off cases, but the instant you start using Tk it starts to get annoying.
  • More compact statements Reduces much of the redundant typing in most cases, which makes your life easier, and makes it take up less visual space, which makes it faster to read.
  • No string worries Strings are often problematic, since they aren’t checked at compile-time. Sometimes it makes spotting an error a difficult task. Using this alleviates that worry.


Checkout these related ports:
  • Ztoolkit - GUI toolkit heavily inspired by GTK
  • Xwallpaper - Xwallpaper utility allows you to set image files as your X wallpaper
  • Xview - X Window-System-based Visual/Integrated Environment for Workstations
  • Xview-clients - OpenLook applications and man pages
  • Xmhtml - Motif widget set for displaying HTML 3.2 documents
  • Xforms - Graphical user interface toolkit for X Window System
  • Xbae - Motif-based widget which displays a grid of cells as a spreadsheet
  • Wxgtk32 - GUI toolkit (wxWidgets) with ${FLAVORS/k/&+/tu} bindings
  • Wxgtk30 - The wxWidgets GUI toolkit with GTK+ bindings
  • Wmapp - DockApp Graphics Library
  • Wlroots015 - Modular Wayland compositor library (deprecated 0.15.* series)
  • Wlroots - Modular Wayland compositor library
  • Wlroots-devel - Modular Wayland compositor library (development snapshot)
  • Vte3 - Terminal widget with improved accessibility and I18N support
  • Vte -