diff --git a/README.md b/README.md index f5ad3cac..407e4685 100644 --- a/README.md +++ b/README.md @@ -44,9 +44,12 @@ Be inspired by [the Tutorials](https://github.com/ceccopierangiolieugenio/pyTerm ## [Api Definitions](https://ceccopierangiolieugenio.github.io/pyTermTk/) Don't get bored by the [Api Definitions](https://ceccopierangiolieugenio.github.io/pyTermTk/) -## [ttkDesigner](https://github.com/ceccopierangiolieugenio/pyTermTk/tree/main/ttkDesigner) +## [ttkDesigner](https://github.com/ceccopierangiolieugenio/pyTermTk/tree/main/tools/ttkDesigner) Smell deliciousness with the official [pyTermTk](https://github.com/ceccopierangiolieugenio/pyTermTk) tool for designing and building Text-based user interfaces ([TUI](https://en.wikipedia.org/wiki/Text-based_user_interface)s) +## [theDumbPaintTool](https://github.com/ceccopierangiolieugenio/pyTermTk/tree/main/tools/dumbPaintTool) +Unravel your hidden artist with [The Terminal ASCII Photoshop](https://ceccopierangiolieugenio.itch.io/dumb-paint-tool) + --- ## [Install/Upgrade](https://ceccopierangiolieugenio.github.io/pyTermTk/info/installing.html) diff --git a/run.ttkDesigner.sh b/run.ttkDesigner.sh new file mode 100755 index 00000000..2d017821 --- /dev/null +++ b/run.ttkDesigner.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +PYTHONPATH=$(pwd)/tools python3 -m ttkDesigner $@ \ No newline at end of file diff --git a/tools/ttkDesigner.py b/tools/ttkDesigner.py new file mode 100755 index 00000000..9bb397d6 --- /dev/null +++ b/tools/ttkDesigner.py @@ -0,0 +1,30 @@ +#!/usr/bin/env python3 +# MIT License +# +# Copyright (c) 2023 Eugenio Parodi +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + +import sys,os +sys.path.append(os.path.join(sys.path[0],'..')) + +from ttkDesigner.app import main + +if __name__ == '__main__': + main() \ No newline at end of file diff --git a/ttkDesigner/README.md b/tools/ttkDesigner/README.md similarity index 95% rename from ttkDesigner/README.md rename to tools/ttkDesigner/README.md index 4283eb66..2795d3e4 100644 --- a/ttkDesigner/README.md +++ b/tools/ttkDesigner/README.md @@ -1,6 +1,6 @@ ![Linux](https://img.shields.io/badge/-Linux-grey?logo=linux) ![Usage](https://img.shields.io/badge/Usage-Terminal%20User%20Interface-yellow) -![Python](https://img.shields.io/badge/Python-v3.8%5E-green?logo=python) +![Python](https://img.shields.io/badge/Python-v3.9%5E-green?logo=python) ![pyTermTk_version](https://img.shields.io/github/v/tag/ceccopierangiolieugenio/pyTermTk?label=version) [![Test Status](https://img.shields.io/github/actions/workflow/status/ceccopierangiolieugenio/pyTermTk/testing.yml?branch=main&label=tests)](https://github.com/ceccopierangiolieugenio/pyTermTk/actions?query=workflow%3Atesting) [![pypi_version](https://img.shields.io/pypi/v/ttkDesigner?label=pypi)](https://pypi.org/project/ttkDesigner) @@ -8,7 +8,7 @@ [![screenshot](https://user-images.githubusercontent.com/8876552/236525667-dcdcec6e-1066-4294-bdb0-db98ef8850da.png)](https://pypi.org/project/ttkDesigner) -## [ttkDesigner](https://github.com/ceccopierangiolieugenio/pyTermTk/tree/main/ttkDesigner) +## [ttkDesigner](https://github.com/ceccopierangiolieugenio/pyTermTk/tree/main/tools/ttkDesigner) **ttkDesigner** is the [pyTermTk](https://github.com/ceccopierangiolieugenio/pyTermTk) tool for designing and building Text-based user interfaces ([TUI](https://en.wikipedia.org/wiki/Text-based_user_interface)s) with [pyTermTk](https://github.com/ceccopierangiolieugenio/pyTermTk) Widgets. You can compose and customize your windows or dialogs in a what-you-see-is-what-you-get (WYSIWYG) manner, and test them interactively. diff --git a/ttkDesigner/__init__.py b/tools/ttkDesigner/__init__.py similarity index 100% rename from ttkDesigner/__init__.py rename to tools/ttkDesigner/__init__.py diff --git a/ttkDesigner/__main__.py b/tools/ttkDesigner/__main__.py similarity index 100% rename from ttkDesigner/__main__.py rename to tools/ttkDesigner/__main__.py diff --git a/ttkDesigner/app/__init__.py b/tools/ttkDesigner/app/__init__.py similarity index 100% rename from ttkDesigner/app/__init__.py rename to tools/ttkDesigner/app/__init__.py diff --git a/ttkDesigner/app/about.py b/tools/ttkDesigner/app/about.py similarity index 100% rename from ttkDesigner/app/about.py rename to tools/ttkDesigner/app/about.py diff --git a/ttkDesigner/app/cfg.py b/tools/ttkDesigner/app/cfg.py similarity index 100% rename from ttkDesigner/app/cfg.py rename to tools/ttkDesigner/app/cfg.py diff --git a/ttkDesigner/app/designer.py b/tools/ttkDesigner/app/designer.py similarity index 100% rename from ttkDesigner/app/designer.py rename to tools/ttkDesigner/app/designer.py diff --git a/ttkDesigner/app/main.py b/tools/ttkDesigner/app/main.py similarity index 100% rename from ttkDesigner/app/main.py rename to tools/ttkDesigner/app/main.py diff --git a/ttkDesigner/app/menuBarEditor.py b/tools/ttkDesigner/app/menuBarEditor.py similarity index 100% rename from ttkDesigner/app/menuBarEditor.py rename to tools/ttkDesigner/app/menuBarEditor.py diff --git a/ttkDesigner/app/notepad.py b/tools/ttkDesigner/app/notepad.py similarity index 100% rename from ttkDesigner/app/notepad.py rename to tools/ttkDesigner/app/notepad.py diff --git a/ttkDesigner/app/propertyeditor.py b/tools/ttkDesigner/app/propertyeditor.py similarity index 100% rename from ttkDesigner/app/propertyeditor.py rename to tools/ttkDesigner/app/propertyeditor.py diff --git a/ttkDesigner/app/quickexport.py b/tools/ttkDesigner/app/quickexport.py similarity index 100% rename from ttkDesigner/app/quickexport.py rename to tools/ttkDesigner/app/quickexport.py diff --git a/ttkDesigner/app/signalsloteditor.py b/tools/ttkDesigner/app/signalsloteditor.py similarity index 100% rename from ttkDesigner/app/signalsloteditor.py rename to tools/ttkDesigner/app/signalsloteditor.py diff --git a/ttkDesigner/app/superobj/__init__.py b/tools/ttkDesigner/app/superobj/__init__.py similarity index 100% rename from ttkDesigner/app/superobj/__init__.py rename to tools/ttkDesigner/app/superobj/__init__.py diff --git a/ttkDesigner/app/superobj/supercontrol.py b/tools/ttkDesigner/app/superobj/supercontrol.py similarity index 100% rename from ttkDesigner/app/superobj/supercontrol.py rename to tools/ttkDesigner/app/superobj/supercontrol.py diff --git a/ttkDesigner/app/superobj/superlayout.py b/tools/ttkDesigner/app/superobj/superlayout.py similarity index 100% rename from ttkDesigner/app/superobj/superlayout.py rename to tools/ttkDesigner/app/superobj/superlayout.py diff --git a/ttkDesigner/app/superobj/superlayoutgrid.py b/tools/ttkDesigner/app/superobj/superlayoutgrid.py similarity index 100% rename from ttkDesigner/app/superobj/superlayoutgrid.py rename to tools/ttkDesigner/app/superobj/superlayoutgrid.py diff --git a/ttkDesigner/app/superobj/superlayouthbox.py b/tools/ttkDesigner/app/superobj/superlayouthbox.py similarity index 100% rename from ttkDesigner/app/superobj/superlayouthbox.py rename to tools/ttkDesigner/app/superobj/superlayouthbox.py diff --git a/ttkDesigner/app/superobj/superlayoutvbox.py b/tools/ttkDesigner/app/superobj/superlayoutvbox.py similarity index 100% rename from ttkDesigner/app/superobj/superlayoutvbox.py rename to tools/ttkDesigner/app/superobj/superlayoutvbox.py diff --git a/ttkDesigner/app/superobj/superobj.py b/tools/ttkDesigner/app/superobj/superobj.py similarity index 100% rename from ttkDesigner/app/superobj/superobj.py rename to tools/ttkDesigner/app/superobj/superobj.py diff --git a/ttkDesigner/app/superobj/superwidget.py b/tools/ttkDesigner/app/superobj/superwidget.py similarity index 100% rename from ttkDesigner/app/superobj/superwidget.py rename to tools/ttkDesigner/app/superobj/superwidget.py diff --git a/ttkDesigner/app/superobj/superwidgetabstractscrollarea.py b/tools/ttkDesigner/app/superobj/superwidgetabstractscrollarea.py similarity index 100% rename from ttkDesigner/app/superobj/superwidgetabstractscrollarea.py rename to tools/ttkDesigner/app/superobj/superwidgetabstractscrollarea.py diff --git a/ttkDesigner/app/superobj/superwidgetcontainer.py b/tools/ttkDesigner/app/superobj/superwidgetcontainer.py similarity index 100% rename from ttkDesigner/app/superobj/superwidgetcontainer.py rename to tools/ttkDesigner/app/superobj/superwidgetcontainer.py diff --git a/ttkDesigner/app/superobj/superwidgetframe.py b/tools/ttkDesigner/app/superobj/superwidgetframe.py similarity index 100% rename from ttkDesigner/app/superobj/superwidgetframe.py rename to tools/ttkDesigner/app/superobj/superwidgetframe.py diff --git a/ttkDesigner/app/superobj/superwidgetlist.py b/tools/ttkDesigner/app/superobj/superwidgetlist.py similarity index 100% rename from ttkDesigner/app/superobj/superwidgetlist.py rename to tools/ttkDesigner/app/superobj/superwidgetlist.py diff --git a/ttkDesigner/app/superobj/superwidgetmenubutton.py b/tools/ttkDesigner/app/superobj/superwidgetmenubutton.py similarity index 100% rename from ttkDesigner/app/superobj/superwidgetmenubutton.py rename to tools/ttkDesigner/app/superobj/superwidgetmenubutton.py diff --git a/ttkDesigner/app/superobj/superwidgetradiobutton.py b/tools/ttkDesigner/app/superobj/superwidgetradiobutton.py similarity index 100% rename from ttkDesigner/app/superobj/superwidgetradiobutton.py rename to tools/ttkDesigner/app/superobj/superwidgetradiobutton.py diff --git a/ttkDesigner/app/superobj/superwidgetsplitter.py b/tools/ttkDesigner/app/superobj/superwidgetsplitter.py similarity index 100% rename from ttkDesigner/app/superobj/superwidgetsplitter.py rename to tools/ttkDesigner/app/superobj/superwidgetsplitter.py diff --git a/ttkDesigner/app/superobj/superwidgettextedit.py b/tools/ttkDesigner/app/superobj/superwidgettextedit.py similarity index 100% rename from ttkDesigner/app/superobj/superwidgettextedit.py rename to tools/ttkDesigner/app/superobj/superwidgettextedit.py diff --git a/ttkDesigner/app/treeinspector.py b/tools/ttkDesigner/app/treeinspector.py similarity index 100% rename from ttkDesigner/app/treeinspector.py rename to tools/ttkDesigner/app/treeinspector.py diff --git a/ttkDesigner/app/widgetbox.py b/tools/ttkDesigner/app/widgetbox.py similarity index 100% rename from ttkDesigner/app/widgetbox.py rename to tools/ttkDesigner/app/widgetbox.py diff --git a/ttkDesigner/app/windoweditor.py b/tools/ttkDesigner/app/windoweditor.py similarity index 100% rename from ttkDesigner/app/windoweditor.py rename to tools/ttkDesigner/app/windoweditor.py diff --git a/ttkDesigner/tui/menuBarEditor.tui.json b/tools/ttkDesigner/tui/menuBarEditor.tui.json similarity index 100% rename from ttkDesigner/tui/menuBarEditor.tui.json rename to tools/ttkDesigner/tui/menuBarEditor.tui.json diff --git a/ttkDesigner/tui/newWindow.tui.json b/tools/ttkDesigner/tui/newWindow.tui.json similarity index 100% rename from ttkDesigner/tui/newWindow.tui.json rename to tools/ttkDesigner/tui/newWindow.tui.json diff --git a/ttkDesigner/tui/quickExport.tui.json b/tools/ttkDesigner/tui/quickExport.tui.json similarity index 100% rename from ttkDesigner/tui/quickExport.tui.json rename to tools/ttkDesigner/tui/quickExport.tui.json diff --git a/ttkDesigner/tui/quickImport.tui.json b/tools/ttkDesigner/tui/quickImport.tui.json similarity index 100% rename from ttkDesigner/tui/quickImport.tui.json rename to tools/ttkDesigner/tui/quickImport.tui.json diff --git a/tools/webExporter/index.html b/tools/webExporter/index.html index 7491ea16..1f940175 100644 --- a/tools/webExporter/index.html +++ b/tools/webExporter/index.html @@ -47,7 +47,7 @@ document.fonts.ready.then(() => {fetchData()}); function fetchData(){ - fetch("package.json") + fetch("web.ttk.package.json") .then(response => response.json()) .then(json => processAndStart(json)); } diff --git a/ttkDesigner/TermTk b/ttkDesigner/TermTk deleted file mode 120000 index c0aae92f..00000000 --- a/ttkDesigner/TermTk +++ /dev/null @@ -1 +0,0 @@ -../TermTk/ \ No newline at end of file