Browse Source

refactor: moved the sandbox to pyTermTk-docs

pull/382/head
Parodi, Eugenio 🌶 12 months ago
parent
commit
2cac91d259
  1. 6
      README.md
  2. 4
      docs/source/conf.py
  3. 2
      docs/source/info/features/crosscompatible.rst
  4. 2
      docs/source/info/features/index.rst
  5. 4
      docs/source/sphinx_modules/sandbox_links.py
  6. 2
      libs/pyTermTk/TermTk/TTkWidgets/texedit.py
  7. 46
      tests/sandbox/Makefile
  8. 4
      tutorial/001-helloworld.rst
  9. 12
      tutorial/002-layout.rst
  10. 4
      tutorial/003-signalslots.rst
  11. 8
      tutorial/004-logging.rst
  12. 10
      tutorial/005-calculator.rst
  13. 6
      tutorial/ttkDesigner/textEdit/README.rst

6
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/)

4
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 = '<span>🌶</span>'
# html_permalinks_icon = '<span><image src="/_images/favicon.png"></span>'
# html_permalinks_icon = '<span><image src="https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/favicon.ico"></span>'
# html_permalinks_icon = '<span><image src="https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/favicon.ico"></span>'
html_theme_options = {
"home_page_in_toc": True,
"use_fullscreen_button": True,

2
docs/source/info/features/crosscompatible.rst

@ -25,7 +25,7 @@ MacOS
.. _cc-html5:
HTML5 (`Try <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html>`_)
HTML5 (`Try <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html>`_)
----------------------------------------------------------------------------------------
.. image:: https://ceccopierangiolieugenio.github.io/binaryRepo/pyTermTk/images/pyTermTk.CC.HTML5.png

2
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

4
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

2
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 <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=demo/showcase/textedit.py>`__, 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 <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=demo/showcase/textedit.py>`__, defaults to a new Document
:type document: :py:class:`TTkTextDocument`, optional
'''

46
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

4
tutorial/001-helloworld.rst

@ -24,7 +24,7 @@ Example 1
---------
Following is the code to execute `helloworld.001.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/helloworld/helloworld.001.py>`_
in pyTermTk_ (`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/helloworld/helloworld.001.py>`__):
in pyTermTk_ (`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/helloworld/helloworld.001.py>`__):
.. code:: python
@ -44,7 +44,7 @@ Example 2 - Your first Window
-----------------------------
Following is the code to execute `helloworld.002.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/helloworld/helloworld.002.py>`_
in pyTermTk_ (`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/helloworld/helloworld.002.py>`__):
in pyTermTk_ (`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/helloworld/helloworld.002.py>`__):
.. code:: python

12
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

4
tutorial/003-signalslots.rst

@ -62,7 +62,7 @@ Example 1 - basic signal slots
------------------------------
From `example1.basic.signalslots.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/signalslots/example1.basic.signalslots.py>`_
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/signalslots/example1.basic.signalslots.py>`__):
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/signalslots/example1.basic.signalslots.py>`__):
.. code:: python
@ -117,7 +117,7 @@ Example 2 - Use widgets signals and slots
-----------------------------------------
From `example2.widgets.signalslots.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/signalslots/example2.widgets.signalslots.py>`_
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/signalslots/example2.widgets.signalslots.py>`__):
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/signalslots/example2.widgets.signalslots.py>`__):
.. code:: python

8
tutorial/004-logging.rst

@ -20,7 +20,7 @@ Example 1 - Log to file
-----------------------
From `example1.logtofile.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/logging/example1.logtofile.py>`_
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/logging/example1.logtofile.py>`__):
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/logging/example1.logtofile.py>`__):
.. code:: python
@ -41,7 +41,7 @@ Example 2 - Log to stdout
-------------------------
From `example2.logtostdout.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/logging/example2.logtostdout.py>`_
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/logging/example2.logtostdout.py>`__):
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/logging/example2.logtostdout.py>`__):
.. code:: python
@ -61,7 +61,7 @@ Example 3 - custom logging
--------------------------
From `example3.customlogging.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/logging/example3.customlogging.py>`_
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/logging/example3.customlogging.py>`__):
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/logging/example3.customlogging.py>`__):
.. code:: python
@ -92,7 +92,7 @@ Example 4 - Use TTkLogViewer_ widget
--------------------------------------------------
From `example4.ttklogviewer.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/logging/example4.ttklogviewer.py>`_
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/logging/example4.ttklogviewer.py>`__):
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/logging/example4.ttklogviewer.py>`__):
.. code:: python

10
tutorial/005-calculator.rst

@ -53,7 +53,7 @@ Initialize the window
---------------------
From `calculator.001.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/calculator/calculator.001.py>`_
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/calculator/calculator.001.py>`__):
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/calculator/calculator.001.py>`__):
.. code:: bash
@ -83,7 +83,7 @@ Add all the widgets of calculator to it
---------------------------------------
From `calculator.002.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/calculator/calculator.002.py>`_
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/calculator/calculator.002.py>`__):
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/calculator/calculator.002.py>`__):
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 <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/calculator/calculator.003.py>`_
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/calculator/calculator.003.py>`__):
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/calculator/calculator.003.py>`__):
.. code:: bash
@ -212,7 +212,7 @@ Operation and results events
----------------------------
From `calculator.004.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/calculator/calculator.004.py>`_
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/calculator/calculator.004.py>`__):
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/calculator/calculator.004.py>`__):
.. code:: bash
@ -256,7 +256,7 @@ Beware the Mystery Button
-----------------------------------------
From `calculator.005.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/calculator/calculator.005.py>`_
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/calculator/calculator.005.py>`__):
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/calculator/calculator.005.py>`__):
.. code:: bash

6
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" ></video>
Exported: `texteditor.01.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/ttkDesigner/textEdit/texteditor.01.py>`_
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/ttkDesigner/textEdit/texteditor.01.py>`__):
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/ttkDesigner/textEdit/texteditor.01.py>`__):
.. 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 <https://ceccopierangiolieugenio.github.io/pyTermTk/autogen.TermTk/TermTk.TTkWidgets.TTkPickers.filepicker.html#TermTk.TTkWidgets.TTkPickers.filepicker.TTkFileButtonPicker.filePicked>`__
`texteditor.02.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/ttkDesigner/textEdit/texteditor.02.py>`_
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/ttkDesigner/textEdit/texteditor.02.py>`__):
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/ttkDesigner/textEdit/texteditor.02.py>`__):
.. code:: bash
@ -231,7 +231,7 @@ Option 2) Extend a custom widget including the open/save methods
----------------------------------------------------------------
`texteditor.03.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/ttkDesigner/textEdit/texteditor.03.py>`_
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/ttkDesigner/textEdit/texteditor.03.py>`__):
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/ttkDesigner/textEdit/texteditor.03.py>`__):
.. code:: bash

Loading…
Cancel
Save