Skip to content

Commit 2cac91d

Browse files
refactor: moved the sandbox to pyTermTk-docs
1 parent 50bcbdf commit 2cac91d

13 files changed

Lines changed: 55 additions & 55 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ https://github.com/user-attachments/assets/888e745a-ea00-4d03-b6ec-273319d54ea7
3030

3131
## [Features](https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/info/features/index.html)
3232
- [Self Contained](https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/info/installing.html#copy-termtk-folder) (no external lib required), Python 3.9 or above required.
33-
- [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))
33+
- [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))
3434
- [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, ...)
3535
- [Specialized widgets](https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/info/features/widgets.html#specialised-widgets) to improve the usability (Windows, Frames, Tables, ...)
3636
- 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
4040

4141
---
4242

43-
## Try the [Sandbox](https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html) straight from your browser
43+
## Try the [Sandbox](https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html) straight from your browser
4444

45-
[![SandBox](https://user-images.githubusercontent.com/8876552/206438915-fdc868b1-32e0-46e8-9e2c-e29f4a7a0e75.png)](https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html)
45+
[![SandBox](https://user-images.githubusercontent.com/8876552/206438915-fdc868b1-32e0-46e8-9e2c-e29f4a7a0e75.png)](https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html)
4646

4747
Powered by [Pyodide](https://pyodide.org/) and [xterm.js](https://xtermjs.org/) and [CodeMirror5](https://codemirror.net/5/) and [w2ui](https://w2ui.com/)
4848

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
'ttk.css'
7272
]
7373

74-
html_favicon = "https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/favicon.ico"
74+
html_favicon = "https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/favicon.ico"
7575
# html_favicon = "_images/favicon.ico"
7676
# html_favicon = "../images/favicon.ico"
7777

@@ -127,7 +127,7 @@
127127
html_theme = 'sphinx_book_theme'
128128
html_permalinks_icon = '<span>🌶️</span>'
129129
# html_permalinks_icon = '<span><image src="/_images/favicon.png"></span>'
130-
# html_permalinks_icon = '<span><image src="https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/favicon.ico"></span>'
130+
# html_permalinks_icon = '<span><image src="https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/favicon.ico"></span>'
131131
html_theme_options = {
132132
"home_page_in_toc": True,
133133
"use_fullscreen_button": True,

docs/source/info/features/crosscompatible.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ MacOS
2525

2626
.. _cc-html5:
2727

28-
HTML5 (`Try <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html>`_)
28+
HTML5 (`Try <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html>`_)
2929
----------------------------------------------------------------------------------------
3030

3131
.. image:: https://ceccopierangiolieugenio.github.io/binaryRepo/pyTermTk/images/pyTermTk.CC.HTML5.png

docs/source/info/features/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Main features
1313

1414
.. From the README.md
1515
- Self Contained (no external lib required)
16-
- 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))
16+
- 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))
1717
- Basic widgets for [TUI](https://en.wikipedia.org/wiki/Text-based_user_interface) development (Button, Label, checkbox, ...)
1818
- Specialized widgets to improve the usability (Windows, Frames, Tables, ...)
1919
- QT Like Layout system to help arrange the widgets in the terminal

docs/source/sphinx_modules/sandbox_links.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def demo_link_role_int_sb(name, rawtext, text, lineno, inliner, options={}, cont
5050
Custom role to generate GitHub and TryItOnline links with optional prefix removal.
5151
"""
5252
base_github_url = "https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/"
53-
base_tio_url = "https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath="
53+
base_tio_url = "https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath="
5454

5555
# Split text into prefix and actual file path
5656

@@ -79,7 +79,7 @@ def demo_link_role_ext_sb(name, rawtext, text, lineno, inliner, options={}, cont
7979
"""
8080
Custom role to generate GitHub and TryItOnline links with optional prefix removal.
8181
"""
82-
base_tio_url = "https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?fileUri="
82+
base_tio_url = "https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?fileUri="
8383

8484
# Split text into prefix and actual file path
8585

libs/pyTermTk/TermTk/TTkWidgets/texedit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def __init__(self, *,
293293
:param multiLine: In a multiline text edit the user can split the text in multiple lines, defaults to **True**
294294
:type multiLine: bool, optional
295295
296-
: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
296+
: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
297297
:type document: :py:class:`TTkTextDocument`, optional
298298
'''
299299

tests/sandbox/Makefile

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,38 @@ www:
1111
www/fontawesome www/webfonts www/fonts/nerdfonts \
1212
www/w2ui
1313

14-
wget -P www/pyodide/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/pyodide/pyodide.js
15-
wget -P www/pyodide/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/pyodide/python_stdlib.zip
16-
wget -P www/pyodide/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/pyodide/pyodide.asm.js
17-
# wget -P www/pyodide/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/pyodide/repodata.json
18-
wget -P www/pyodide/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/pyodide/pyodide.asm.wasm
14+
wget -P www/pyodide/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/pyodide/pyodide.js
15+
wget -P www/pyodide/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/pyodide/python_stdlib.zip
16+
wget -P www/pyodide/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/pyodide/pyodide.asm.js
17+
# wget -P www/pyodide/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/pyodide/repodata.json
18+
wget -P www/pyodide/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/pyodide/pyodide.asm.wasm
1919

20-
wget -P www/xterm/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/xterm/xterm.css
21-
wget -P www/xterm/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/xterm/xterm.js
22-
wget -P www/xterm/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/xterm/xterm.js.map
20+
wget -P www/xterm/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/xterm/xterm.css
21+
wget -P www/xterm/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/xterm/xterm.js
22+
wget -P www/xterm/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/xterm/xterm.js.map
2323

24-
wget -P www/xterm/addon-fit/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/xterm/addon-fit/addon-fit.js
25-
wget -P www/xterm/addon-fit/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/xterm/addon-fit/addon-fit.js.map
24+
wget -P www/xterm/addon-fit/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/xterm/addon-fit/addon-fit.js
25+
wget -P www/xterm/addon-fit/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/xterm/addon-fit/addon-fit.js.map
2626

27-
wget -P www/xterm/addon-unicode11/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/xterm/addon-unicode11/addon-unicode11.js
27+
wget -P www/xterm/addon-unicode11/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/xterm/addon-unicode11/addon-unicode11.js
2828

29-
wget -P www/fontawesome/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/fontawesome/regular.min.css
30-
wget -P www/fontawesome/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/fontawesome/fontawesome.min.css
29+
wget -P www/fontawesome/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/fontawesome/regular.min.css
30+
wget -P www/fontawesome/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/fontawesome/fontawesome.min.css
3131

32-
# wget -P www/webfonts/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/webfonts/fa-regular-400.woff2
33-
# wget -P www/fonts/nerdfonts/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/nerdfonts/HurmitNerdFontMono-Regular.otf
34-
wget -P www/fonts/nerdfonts/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/fonts/nerdfonts/DejaVuSansMNerdFont-Regular.ttf
32+
# wget -P www/webfonts/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/webfonts/fa-regular-400.woff2
33+
# wget -P www/fonts/nerdfonts/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/nerdfonts/HurmitNerdFontMono-Regular.otf
34+
wget -P www/fonts/nerdfonts/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/fonts/nerdfonts/DejaVuSansMNerdFont-Regular.ttf
3535

3636

37-
wget -P www/w2ui/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/w2ui/w2ui-2.0.min.js
38-
wget -P www/w2ui/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/w2ui/w2ui-2.0.min.css
37+
wget -P www/w2ui/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/w2ui/w2ui-2.0.min.js
38+
wget -P www/w2ui/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/w2ui/w2ui-2.0.min.css
3939

40-
wget -P www/codemirror/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/codemirror/codemirror.js
41-
wget -P www/codemirror/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/codemirror/codemirror.css
42-
wget -P www/codemirror/theme/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/codemirror/theme/mbo.css
43-
wget -P www/codemirror/modes/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/codemirror/modes/python.js
40+
wget -P www/codemirror/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/codemirror/codemirror.js
41+
wget -P www/codemirror/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/codemirror/codemirror.css
42+
wget -P www/codemirror/theme/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/codemirror/theme/mbo.css
43+
wget -P www/codemirror/modes/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/codemirror/modes/python.js
4444

45-
wget -P www/ https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/www/favicon.ico
45+
wget -P www/ https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/www/favicon.ico
4646

4747
updateXterm: www
4848
rm -rf node_modules package.json package-lock.json

tutorial/001-helloworld.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Example 1
2424
---------
2525

2626
Following is the code to execute `helloworld.001.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/helloworld/helloworld.001.py>`_
27-
in pyTermTk_ (`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/helloworld/helloworld.001.py>`__):
27+
in pyTermTk_ (`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/helloworld/helloworld.001.py>`__):
2828

2929
.. code:: python
3030
@@ -44,7 +44,7 @@ Example 2 - Your first Window
4444
-----------------------------
4545

4646
Following is the code to execute `helloworld.002.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/helloworld/helloworld.002.py>`_
47-
in pyTermTk_ (`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/helloworld/helloworld.002.py>`__):
47+
in pyTermTk_ (`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/helloworld/helloworld.002.py>`__):
4848

4949
.. code:: python
5050

tutorial/002-layout.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
.. _Nested Layouts Example: https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/layout/example5.nested.layouts.py
1515
.. _`row/colspan Example`: https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/layout/example6.grid.span.py
1616

17-
.. _web-LayoutEx: https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/layout/example1.simple.layout.py
18-
.. _web-VBoxEx: https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/layout/example2.simple.vbox.py
19-
.. _web-HBoxEx: https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/layout/example3.simple.hbox.py
20-
.. _web-GridEx: https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/layout/example4.simple.grid.py
21-
.. _web-NestedEx: https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/layout/example5.nested.layouts.py
22-
.. _web-SpanEx: https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/layout/example6.grid.span.py
17+
.. _web-LayoutEx: https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/layout/example1.simple.layout.py
18+
.. _web-VBoxEx: https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/layout/example2.simple.vbox.py
19+
.. _web-HBoxEx: https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/layout/example3.simple.hbox.py
20+
.. _web-GridEx: https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/layout/example4.simple.grid.py
21+
.. _web-NestedEx: https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/layout/example5.nested.layouts.py
22+
.. _web-SpanEx: https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/layout/example6.grid.span.py
2323

2424
=============================================================================
2525
pyTermTk_ - Layouts

tutorial/003-signalslots.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Example 1 - basic signal slots
6262
------------------------------
6363

6464
From `example1.basic.signalslots.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/signalslots/example1.basic.signalslots.py>`_
65-
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/signalslots/example1.basic.signalslots.py>`__):
65+
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/signalslots/example1.basic.signalslots.py>`__):
6666

6767
.. code:: python
6868
@@ -117,7 +117,7 @@ Example 2 - Use widgets signals and slots
117117
-----------------------------------------
118118

119119
From `example2.widgets.signalslots.py <https://github.com/ceccopierangiolieugenio/pyTermTk/blob/main/tutorial/signalslots/example2.widgets.signalslots.py>`_
120-
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk/sandbox/sandbox.html?filePath=tutorial/signalslots/example2.widgets.signalslots.py>`__):
120+
(`tryItOnline <https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/sandbox/sandbox.html?filePath=tutorial/signalslots/example2.widgets.signalslots.py>`__):
121121

122122
.. code:: python
123123

0 commit comments

Comments
 (0)