Installation🌶️
pyTermTk is a self contained library, it does not require extra libraries to be used and can be installed through PyPi or just copying the TermTk folder in the root folder of your project.
PyPi🌶️
It is possible to install pyTermTk with PyPi also inside a venv environment
User Install🌶️
# User/Global Install
pip3 install --upgrade pyTermTk
Venv Install🌶️
# Create a venv environment in the ".venv" folder
python3 -m venv .venv
. .venv/bin/activate
# Install inside the venv environment
pip3 install --upgrade pyTermTk
# ... Do you Stuff
# Clear/Erase/GetRidOf the venv
rm -rf .venv
Windows10 Install🌶️
Copy TermTk folder🌶️
git clone https://github.com/ceccopierangiolieugenio/pyTermTk.git
cp -a pyTermTk/TermTk <DEST_FOLDER>
Quickstart🌶️
There are a number of demo apps and examples that can be executed in the repository
Demos🌶️
Inside the demo and demo/showcase folders there are a number of examples that can be executed out of the box.
Prerequisites🌶️
Clone or Download the pyTermTk repo:
# Clone and enter the folder
git clone https://github.com/ceccopierangiolieugenio/pyTermTk.git
cd pyTermTk
Demos🌶️
Main demo demo.py (tryItOnline)
paint demo paint.py (tryItOnline)
ttkode prototype ttkode.py (tryItOnline)
# Run the main demo
python3 demo/demo.py
# Run the paint demo
python3 demo/paint.py
# Run the ttkode demo
python3 demo/ttkode.py
Showcase🌶️
Highlight:
Text Editor textedit.py (tryItOnline)
Animation animation.01.py (tryItOnline)
color picker colorpicker.py (tryItOnline)
file picker filepicker.py (tryItOnline)
drag & drop dragndrop.py (tryItOnline)
d&d with tabs dndtabs.py (tryItOnline)
d&d with list list.py (tryItOnline)
base widgets formwidgets02.py (tryItOnline)
messagebox messagebox.py (tryItOnline)
splitter splitter.py (tryItOnline)
Windows windowsflags.py (tryItOnline)
AppTemplate apptemplate.py (tryItOnline)
Tooltip test.ui.026.toolTip.py (tryItOnline)
# Demo - Text Editor
python3 demo/showcase/textedit.py
# Demo - Animation
python3 demo/showcase/animation.01.py
# Demo - color picker
python3 demo/showcase/colorpicker.py
# Demo - file picker
python3 demo/showcase/filepicker.py
# Demo - drag & drop
python3 demo/showcase/dragndrop.py
# Demo - d&d with tabs
python3 demo/showcase/dndtabs.py
# Demo - d&d with list
python3 demo/showcase/list.py
# Demo - base widgets
python3 demo/showcase/formwidgets02.py
# Demo - messagebox
python3 demo/showcase/messagebox.py
# Demo - splitter
python3 demo/showcase/splitter.py
# Demo - Windows
python3 demo/showcase/windowsflags.py
# Demo - AppTemplate
python3 demo/showcase/apptemplate.py
# Demo - Tooltip
python3 tests/t.ui/test.ui.026.toolTip.py
# Text edit with "Pygments" highlight integrated
# it require pygments
# pip install pygments
python3 tests/t.ui/test.ui.018.TextEdit.Pygments.py README.md