diff --git a/demo/showcase/apptemplate.py b/demo/showcase/apptemplate.py index 4be36adc..30b22bac 100755 --- a/demo/showcase/apptemplate.py +++ b/demo/showcase/apptemplate.py @@ -99,7 +99,10 @@ def main(): rootAppTemplate = root root.setLayout(ttk.TTkGridLayout()) else: - rootAppTemplate = ttk.TTkWindow(parent=root,pos = (0,0), size=(100,40), title="Test AppTemplate", border=True, layout=ttk.TTkGridLayout()) + rootAppTemplate = ttk.TTkWindow( + parent=root,pos = (0,0), size=(100,40), + flags = ttk.TTkK.WindowFlag.WindowMinMaxButtonsHint | ttk.TTkK.WindowFlag.WindowCloseButtonHint, + title="Test AppTemplate", border=True, layout=ttk.TTkGridLayout()) demoAppTemplate(rootAppTemplate) root.mainloop() diff --git a/docs/source/info/installing.rst b/docs/source/info/installing.rst index dbb22eba..9c2f9252 100644 --- a/docs/source/info/installing.rst +++ b/docs/source/info/installing.rst @@ -120,6 +120,7 @@ Showcase * 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 @@ -146,6 +147,8 @@ Showcase 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 diff --git a/docs/source/info/resources/clipboard.rst b/docs/source/info/resources/clipboard.rst index 54b42c43..620a9506 100644 --- a/docs/source/info/resources/clipboard.rst +++ b/docs/source/info/resources/clipboard.rst @@ -48,15 +48,46 @@ Usage Once initialized the clipboard manager, 2 apis are provided that can be used to access the clipboard (:class:`~TermTk.TTkGui.clipboard.TTkClipboard.setText`, :class:`~TermTk.TTkGui.clipboard.TTkClipboard.text`) - .. code:: python +.. code:: python - from TermTk import TTkClipboard + from TermTk import TTkClipboard - # Initialize the clipboard manager - clipboard = TTkClipboard() + # Initialize the clipboard manager + clipboard = TTkClipboard() - # Push some text to the clipboard - clipboard.setText("Example") + # Push some text to the clipboard + clipboard.setText("Example") - # Get the text from the clipboard - text = clipboard.text() \ No newline at end of file + # Get the text from the clipboard + text = clipboard.text() + +------------------ +Clipboard over ssh +------------------ + +As reported in `234# `_, it is possible to share the clipboard enabling the X11 forwarding. + + +Terminal (Linux,osx) +~~~~~~~~~~~~~~~~~~~~ + +You can forward X11 using `ssh `_ + +.. code:: bash + + # Enable X11 forwarding + ssh -X + +or + +.. code:: bash + + # Enable trusted X11 forwarding + ssh -Y + +putty +~~~~~ + +It is possible to forward X11 via putty through these settings + +.. image:: https://github.com/ceccopierangiolieugenio/pyTermTk/assets/8876552/1b7fea21-74f2-4351-9a9c-548aaa1581ca