diff --git a/README.md b/README.md index 9bb98f32..a5690989 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ https://github.com/user-attachments/assets/888e745a-ea00-4d03-b6ec-273319d54ea7 ## [Features](https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/info/features/index.html) - [Self Contained](https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/info/installing.html#copy-termtk-folder) (no external lib required), Python 3.9 or above required. -- [Cross compatible](https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/info/features/crosscompatible.html): [Linux](https://en.wikipedia.org/wiki/Linux)🐧, [MacOS](https://en.wikipedia.org/wiki/MacOS)🍎, [MS Windows](https://en.wikipedia.org/wiki/Microsoft_Windows)🪟, [HTML5](https://en.wikipedia.org/wiki/HTML5)🌍([Try](https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html)) +- [Cross compatible](https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/info/features/crosscompatible.html): [Linux](https://en.wikipedia.org/wiki/Linux)🐧, [MacOS](https://en.wikipedia.org/wiki/MacOS)🍎, [MS Windows](https://en.wikipedia.org/wiki/Microsoft_Windows)🪟, [HTML5](https://en.wikipedia.org/wiki/HTML5)🌍([Try](https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html)) - [Basic widgets](https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/info/features/widgets.html#base-widgets) for [TUI](https://en.wikipedia.org/wiki/Text-based_user_interface) development (Button, Label, checkbox, ...) - [Specialized widgets](https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/info/features/widgets.html#specialised-widgets) to improve the usability (Windows, Frames, Tables, ...) - QT Like Layout system to help arrange the widgets in the terminal @@ -40,9 +40,9 @@ https://github.com/user-attachments/assets/888e745a-ea00-4d03-b6ec-273319d54ea7 --- -## Try the [Sandbox](https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html) straight from your browser +## Try the [Sandbox](https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html) straight from your browser -[![SandBox](https://user-images.githubusercontent.com/8876552/206438915-fdc868b1-32e0-46e8-9e2c-e29f4a7a0e75.png)](https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html) +[![SandBox](https://user-images.githubusercontent.com/8876552/206438915-fdc868b1-32e0-46e8-9e2c-e29f4a7a0e75.png)](https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html) Powered by [Pyodide](https://pyodide.org/) and [xterm.js](https://xtermjs.org/) and [CodeMirror5](https://codemirror.net/5/) and [w2ui](https://w2ui.com/) diff --git a/docs/source/conf.py b/docs/source/conf.py index 36031443..28f1a0ba 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -71,7 +71,7 @@ html_css_files = [ 'ttk.css' ] -html_favicon = "https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/favicon.ico" +html_favicon = "https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/favicon.ico" # html_favicon = "_images/favicon.ico" # html_favicon = "../images/favicon.ico" @@ -127,7 +127,7 @@ toc_object_entries_show_parents='hide' html_theme = 'sphinx_book_theme' html_permalinks_icon = '🌶️' # html_permalinks_icon = '' -# html_permalinks_icon = '' +# html_permalinks_icon = '' html_theme_options = { "home_page_in_toc": True, "use_fullscreen_button": True, diff --git a/docs/source/info/features/crosscompatible.rst b/docs/source/info/features/crosscompatible.rst index ce3ec336..e32f7753 100644 --- a/docs/source/info/features/crosscompatible.rst +++ b/docs/source/info/features/crosscompatible.rst @@ -25,7 +25,7 @@ MacOS .. _cc-html5: -HTML5 (`Try `_) +HTML5 (`Try `_) ---------------------------------------------------------------------------------------- .. image:: https://ceccopierangiolieugenio.github.io/binaryRepo/pyTermTk/images/pyTermTk.CC.HTML5.png diff --git a/docs/source/info/features/index.rst b/docs/source/info/features/index.rst index bfdc0ecd..f8908ce8 100644 --- a/docs/source/info/features/index.rst +++ b/docs/source/info/features/index.rst @@ -13,7 +13,7 @@ Main features .. From the README.md - Self Contained (no external lib required) - - Cross compatible: [Linux](https://en.wikipedia.org/wiki/Linux)🐧, [MacOS](https://en.wikipedia.org/wiki/MacOS)🍎, [MS Windows](https://en.wikipedia.org/wiki/Microsoft_Windows)🪟, [HTML5](https://en.wikipedia.org/wiki/HTML5)🌍([Try](https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html)) + - Cross compatible: [Linux](https://en.wikipedia.org/wiki/Linux)🐧, [MacOS](https://en.wikipedia.org/wiki/MacOS)🍎, [MS Windows](https://en.wikipedia.org/wiki/Microsoft_Windows)🪟, [HTML5](https://en.wikipedia.org/wiki/HTML5)🌍([Try](https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html)) - Basic widgets for [TUI](https://en.wikipedia.org/wiki/Text-based_user_interface) development (Button, Label, checkbox, ...) - Specialized widgets to improve the usability (Windows, Frames, Tables, ...) - QT Like Layout system to help arrange the widgets in the terminal diff --git a/docs/source/sphinx_modules/sandbox_links.py b/docs/source/sphinx_modules/sandbox_links.py index 34a5dc45..b9fedffb 100644 --- a/docs/source/sphinx_modules/sandbox_links.py +++ b/docs/source/sphinx_modules/sandbox_links.py @@ -50,7 +50,7 @@ def demo_link_role_int_sb(name, rawtext, text, lineno, inliner, options={}, cont Custom role to generate GitHub and TryItOnline links with optional prefix removal. """ base_github_url = "https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/" - base_tio_url = "https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=" + base_tio_url = "https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=" # Split text into prefix and actual file path @@ -79,7 +79,7 @@ def demo_link_role_ext_sb(name, rawtext, text, lineno, inliner, options={}, cont """ Custom role to generate GitHub and TryItOnline links with optional prefix removal. """ - base_tio_url = "https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?fileUri=" + base_tio_url = "https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?fileUri=" # Split text into prefix and actual file path diff --git a/libs/pyTermTk/TermTk/TTkWidgets/texedit.py b/libs/pyTermTk/TermTk/TTkWidgets/texedit.py index 7ba6a2aa..ac4f57b7 100644 --- a/libs/pyTermTk/TermTk/TTkWidgets/texedit.py +++ b/libs/pyTermTk/TermTk/TTkWidgets/texedit.py @@ -293,7 +293,7 @@ class TTkTextEditView(TTkAbstractScrollView): :param multiLine: In a multiline text edit the user can split the text in multiple lines, defaults to **True** :type multiLine: bool, optional - :param document: If required an external Document can be used in this text editor, this option is useful if multiple editors share the same document as in the `demo `__, defaults to a new Document + :param document: If required an external Document can be used in this text editor, this option is useful if multiple editors share the same document as in the `demo `__, defaults to a new Document :type document: :py:class:`TTkTextDocument`, optional ''' diff --git a/tests/sandbox/Makefile b/tests/sandbox/Makefile index 1da7125d..694dc9a2 100644 --- a/tests/sandbox/Makefile +++ b/tests/sandbox/Makefile @@ -11,38 +11,38 @@ www: www/fontawesome www/webfonts www/fonts/nerdfonts \ www/w2ui - wget -P www/pyodide/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/pyodide/pyodide.js - wget -P www/pyodide/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/pyodide/python_stdlib.zip - wget -P www/pyodide/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/pyodide/pyodide.asm.js - # wget -P www/pyodide/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/pyodide/repodata.json - wget -P www/pyodide/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/pyodide/pyodide.asm.wasm + wget -P www/pyodide/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/pyodide/pyodide.js + wget -P www/pyodide/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/pyodide/python_stdlib.zip + wget -P www/pyodide/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/pyodide/pyodide.asm.js + # wget -P www/pyodide/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/pyodide/repodata.json + wget -P www/pyodide/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/pyodide/pyodide.asm.wasm - wget -P www/xterm/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/xterm/xterm.css - wget -P www/xterm/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/xterm/xterm.js - wget -P www/xterm/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/xterm/xterm.js.map + wget -P www/xterm/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/xterm/xterm.css + wget -P www/xterm/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/xterm/xterm.js + wget -P www/xterm/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/xterm/xterm.js.map - wget -P www/xterm/addon-fit/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/xterm/addon-fit/addon-fit.js - wget -P www/xterm/addon-fit/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/xterm/addon-fit/addon-fit.js.map + wget -P www/xterm/addon-fit/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/xterm/addon-fit/addon-fit.js + wget -P www/xterm/addon-fit/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/xterm/addon-fit/addon-fit.js.map - wget -P www/xterm/addon-unicode11/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/xterm/addon-unicode11/addon-unicode11.js + wget -P www/xterm/addon-unicode11/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/xterm/addon-unicode11/addon-unicode11.js - wget -P www/fontawesome/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/fontawesome/regular.min.css - wget -P www/fontawesome/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/fontawesome/fontawesome.min.css + wget -P www/fontawesome/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/fontawesome/regular.min.css + wget -P www/fontawesome/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/fontawesome/fontawesome.min.css - # wget -P www/webfonts/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/webfonts/fa-regular-400.woff2 - # wget -P www/fonts/nerdfonts/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/nerdfonts/HurmitNerdFontMono-Regular.otf - wget -P www/fonts/nerdfonts/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/fonts/nerdfonts/DejaVuSansMNerdFont-Regular.ttf + # wget -P www/webfonts/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/webfonts/fa-regular-400.woff2 + # wget -P www/fonts/nerdfonts/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/nerdfonts/HurmitNerdFontMono-Regular.otf + wget -P www/fonts/nerdfonts/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/fonts/nerdfonts/DejaVuSansMNerdFont-Regular.ttf - wget -P www/w2ui/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/w2ui/w2ui-2.0.min.js - wget -P www/w2ui/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/w2ui/w2ui-2.0.min.css + wget -P www/w2ui/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/w2ui/w2ui-2.0.min.js + wget -P www/w2ui/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/w2ui/w2ui-2.0.min.css - wget -P www/codemirror/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/codemirror/codemirror.js - wget -P www/codemirror/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/codemirror/codemirror.css - wget -P www/codemirror/theme/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/codemirror/theme/mbo.css - wget -P www/codemirror/modes/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/codemirror/modes/python.js + wget -P www/codemirror/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/codemirror/codemirror.js + wget -P www/codemirror/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/codemirror/codemirror.css + wget -P www/codemirror/theme/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/codemirror/theme/mbo.css + wget -P www/codemirror/modes/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/codemirror/modes/python.js - wget -P www/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/favicon.ico + wget -P www/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/favicon.ico updateXterm: www rm -rf node_modules package.json package-lock.json diff --git a/tutorial/001-helloworld.rst b/tutorial/001-helloworld.rst index 7bb1a491..786f3781 100644 --- a/tutorial/001-helloworld.rst +++ b/tutorial/001-helloworld.rst @@ -24,7 +24,7 @@ Example 1 --------- Following is the code to execute `helloworld.001.py `_ -in pyTermTk_ (`tryItOnline `__): +in pyTermTk_ (`tryItOnline `__): .. code:: python @@ -44,7 +44,7 @@ Example 2 - Your first Window ----------------------------- Following is the code to execute `helloworld.002.py `_ -in pyTermTk_ (`tryItOnline `__): +in pyTermTk_ (`tryItOnline `__): .. code:: python diff --git a/tutorial/002-layout.rst b/tutorial/002-layout.rst index d5b8bc3a..7cca9b4c 100644 --- a/tutorial/002-layout.rst +++ b/tutorial/002-layout.rst @@ -14,12 +14,12 @@ .. _Nested Layouts Example: https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/layout/example5.nested.layouts.py .. _`row/colspan Example`: https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/layout/example6.grid.span.py -.. _web-LayoutEx: https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/layout/example1.simple.layout.py -.. _web-VBoxEx: https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/layout/example2.simple.vbox.py -.. _web-HBoxEx: https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/layout/example3.simple.hbox.py -.. _web-GridEx: https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/layout/example4.simple.grid.py -.. _web-NestedEx: https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/layout/example5.nested.layouts.py -.. _web-SpanEx: https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/layout/example6.grid.span.py +.. _web-LayoutEx: https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/layout/example1.simple.layout.py +.. _web-VBoxEx: https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/layout/example2.simple.vbox.py +.. _web-HBoxEx: https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/layout/example3.simple.hbox.py +.. _web-GridEx: https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/layout/example4.simple.grid.py +.. _web-NestedEx: https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/layout/example5.nested.layouts.py +.. _web-SpanEx: https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/layout/example6.grid.span.py ============================================================================= pyTermTk_ - Layouts diff --git a/tutorial/003-signalslots.rst b/tutorial/003-signalslots.rst index 452399dd..f06bf513 100644 --- a/tutorial/003-signalslots.rst +++ b/tutorial/003-signalslots.rst @@ -62,7 +62,7 @@ Example 1 - basic signal slots ------------------------------ From `example1.basic.signalslots.py `_ -(`tryItOnline `__): +(`tryItOnline `__): .. code:: python @@ -117,7 +117,7 @@ Example 2 - Use widgets signals and slots ----------------------------------------- From `example2.widgets.signalslots.py `_ -(`tryItOnline `__): +(`tryItOnline `__): .. code:: python diff --git a/tutorial/004-logging.rst b/tutorial/004-logging.rst index 9cf9d8ea..613ad96b 100644 --- a/tutorial/004-logging.rst +++ b/tutorial/004-logging.rst @@ -20,7 +20,7 @@ Example 1 - Log to file ----------------------- From `example1.logtofile.py `_ -(`tryItOnline `__): +(`tryItOnline `__): .. code:: python @@ -41,7 +41,7 @@ Example 2 - Log to stdout ------------------------- From `example2.logtostdout.py `_ -(`tryItOnline `__): +(`tryItOnline `__): .. code:: python @@ -61,7 +61,7 @@ Example 3 - custom logging -------------------------- From `example3.customlogging.py `_ -(`tryItOnline `__): +(`tryItOnline `__): .. code:: python @@ -92,7 +92,7 @@ Example 4 - Use TTkLogViewer_ widget -------------------------------------------------- From `example4.ttklogviewer.py `_ -(`tryItOnline `__): +(`tryItOnline `__): .. code:: python diff --git a/tutorial/005-calculator.rst b/tutorial/005-calculator.rst index 175d7923..dedb28d0 100644 --- a/tutorial/005-calculator.rst +++ b/tutorial/005-calculator.rst @@ -53,7 +53,7 @@ Initialize the window --------------------- From `calculator.001.py `_ -(`tryItOnline `__): +(`tryItOnline `__): .. code:: bash @@ -83,7 +83,7 @@ Add all the widgets of calculator to it --------------------------------------- From `calculator.002.py `_ -(`tryItOnline `__): +(`tryItOnline `__): Based on the positions and sizes defined in the `design layout <#design>`_, I place all the widgets on the TTkGridLayout_ (**winLayout**) @@ -165,7 +165,7 @@ Numeric Button Events --------------------------------------- From `calculator.003.py `_ -(`tryItOnline `__): +(`tryItOnline `__): .. code:: bash @@ -212,7 +212,7 @@ Operation and results events ---------------------------- From `calculator.004.py `_ -(`tryItOnline `__): +(`tryItOnline `__): .. code:: bash @@ -256,7 +256,7 @@ Beware the Mystery Button ----------------------------------------- From `calculator.005.py `_ -(`tryItOnline `__): +(`tryItOnline `__): .. code:: bash diff --git a/tutorial/ttkDesigner/textEdit/README.rst b/tutorial/ttkDesigner/textEdit/README.rst index f79c065b..5697e393 100644 --- a/tutorial/ttkDesigner/textEdit/README.rst +++ b/tutorial/ttkDesigner/textEdit/README.rst @@ -169,7 +169,7 @@ Preview and Quick Export controls="controls" muted="muted" class="d-block rounded-bottom-2 border-top width-fit" > Exported: `texteditor.01.py `_ -(`tryItOnline `__): +(`tryItOnline `__): .. code:: bash @@ -190,7 +190,7 @@ Option 1) Include the Open/Save routine and link them to the widget Once (quick)exported the code, we need to define the appropriate routines and link them to the file(open/save) pickers `signals `__ `texteditor.02.py `_ -(`tryItOnline `__): +(`tryItOnline `__): .. code:: bash @@ -231,7 +231,7 @@ Option 2) Extend a custom widget including the open/save methods ---------------------------------------------------------------- `texteditor.03.py `_ -(`tryItOnline `__): +(`tryItOnline `__): .. code:: bash