Metadata-Version: 2.0
Name: tttt
Version: 0.1.2
Summary: Python3 tkinter text plugin - easily save and load multiple font styles
Home-page: https://github.com/timeyyy/tttt
Author: timothy eichler
Author-email: tim_eichler@hotmail.com
License: BSD
Keywords: tkinter text font style bold underline italic color
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5


.. image:: http://i101.photobucket.com/albums/m58/timeyyy_da_man/coloring_pencils.jpg
	:alt: coloring pencils!
	:align: right
	:scale: 40 %

tttt - tims tkinter text tags
=============================

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

Features
--------

* 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

Installation
------------

pip3 install tttt

Usage
-----

There is a `demo picture <https://github.com/timeyyy/tttt/wiki/Demo-Code>`_ avaliable

.. code-block:: python

	from tttt import XmlManager

	tag_manager = XmlManager(text)


bind these to your callback buttons or hotkeys

.. code-block:: python

	tag_manager.change_style('bold') 
	tag_manager.change_style('italic')
	tag_manager.change_style('solid') 			# underline 
	tag_manager.change_style(('family',value)) 
	tag_manager.change_style(('size',value))
	tag_manager.change_style(('foreground', value))
	tag_manager.change_style(('background', value))

Saving and loading
^^^^^^^^^^^^^^^^^^

.. code-block:: python

	tag_manager.load(data)
	xml_data = tag_manager.save()


Configuring Buttons For Indenting
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. code-block:: python

	tag_manager.button_references = {'bold':bold,
					'italic':italic,
					'underline':underline,
					'family':family_font_menu.var,
					'overstrike':overstrike,
					'foreground':foreground,
					'background':background,
					'size':size_menu.var
					} 


Coming Next Release
===================
* copy/paste/saving formatted text


Changelog
=========

0.1.2
=====
* overstrike added
* all button_reference buttons get takefocus set to 0

0.1.1
=====
* many bugs removed


Authors and Contributors
========================

Timothy Eichler


