Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

New python3 library: tkstackrpms

I have collected my small additions/modifications to Tkinter in a single library: python3-tkstackrpms.

  • New widgets: Tooltip, Statusbar
  • Extended widgets:
  • Spinbox with mousewheel support
  • Checkbox that calls function on Enter/Space/MouseButton1
  • Entry that calls function on Enter/FocusOut
  • Radiobutton that allows keyboard navigation through all related (by same variable) radiobuttons: Home, End, Up, Down.
  • Poor-man's Gtk 3.0 icon name to path resolution
  • Load image from svg
  • Function flash_entry that cycles through a list of colors, at a provided duration per color. Useful for flashing an error.

If those aren't interesting to you, you can ignore this. But these have helped me in at least two projects, so it was time to make my own library.

There's a proper setup.cfg but I haven't bothered to figure out how to upload this to pypi. But I did make a dpkg for tkstackrpms.

Over the next few posts, I'll be demonstrating some of the useful features.

Comments