.. _pyTermTk: https://github.com/ceccopierangiolieugenio/pyTermTk .. _TermTk: https://github.com/ceccopierangiolieugenio/pyTermTk .. _install-installation: ============ Installation ============ pyTermTk_ is a self contained library, it does not require extra libraries to be used and can be installed through :ref:`install-pypi` or just :ref:`copying the TermTk folder` in the root folder of your project. .. _install-pypi: PyPi ---- It is possible to install pyTermTk with PyPi also inside a venv environment User Install ~~~~~~~~~~~~ .. code:: bash # User/Global Install pip3 install --upgrade pyTermTk `Venv `_ Install ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: bash # 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 .. _install-copy: Copy TermTk folder ------------------ .. code:: bash git clone https://github.com/ceccopierangiolieugenio/pyTermTk.git cp -a pyTermTk/TermTk .. _install-quickstart: ========== 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: .. code:: bash # 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 `_) .. code:: bash # 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 `_) .. code:: bash # 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