Skip to main content

Python3 tkinter text plugin - easily save and load multiple font styles

Project description

coloring pencils!

tttt - tims tkinter text tags

Save and load tags for the tkinter text widget using open office format xml


  • Super easy to use api, All the commands you will need are below!
  • Automatically indent buttons on selection
  • Bold, Italic, Underline, Overstrike, Fonts, Sizes
  • Behavour of adding and removing tags is modeled on libre office


pip3 install tttt


There is a demo picture avaliable

from tttt import XmlManager

tag_manager = XmlManager(text)

bind these to your callback buttons or hotkeys

tag_manager.change_style('solid')                       # underline
tag_manager.change_style(('foreground', value))
tag_manager.change_style(('background', value))

Saving and loading

xml_data =

Configuring Buttons For Indenting

tag_manager.button_references = {'bold':bold,

Coming Next Release

  • copy/paste/saving formatted text
  • python2 support

Change log


  • bug fix - duplicating tags on save/load


  • overstrike added
  • bold/italic buttons etc will no longer steal focus from the widget


  • many bugs removed

Authors and Contributors

Timothy Eichler

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tttt, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size tttt-0.1.3-py2.py3-none-any.whl (21.4 kB) File type Wheel Python version 3.4 Upload date Hashes View
Filename, size (25.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page