pgwidgets-js 0.4.2__tar.gz → 0.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/PKG-INFO +1 -1
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/WhatsNew.rst +30 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/widgets/layout.rst +71 -2
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/all_widgets_pyodide.py +6 -5
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/all_widgets_pyscript.py +6 -5
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/package.json +1 -1
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/defs.py +7 -2
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/pyodide/widget.py +1 -1
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/TreeView.css +7 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/TabWidget.js +255 -33
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/TreeView.js +27 -3
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js.egg-info/PKG-INFO +1 -1
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js.egg-info/SOURCES.txt +5 -1
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js.egg-info/scm_file_list.json +5 -1
- pgwidgets_js-0.5.0/pgwidgets_js.egg-info/scm_version.json +8 -0
- pgwidgets_js-0.5.0/tests/__init__.py +0 -0
- pgwidgets_js-0.5.0/tests/tabwidget_dnd.mjs +318 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/tests/test_defs.py +2 -2
- pgwidgets_js-0.5.0/tests/test_tabwidget_dnd.py +26 -0
- pgwidgets_js-0.5.0/tests/test_treeview_sort.py +27 -0
- pgwidgets_js-0.5.0/tests/treeview_sort.mjs +139 -0
- pgwidgets_js-0.4.2/pgwidgets_js.egg-info/scm_version.json +0 -8
- pgwidgets_js-0.4.2/tests/__init__.py +0 -1
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/.flake8 +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/.github/workflows/tests.yml +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/.gitignore +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/.readthedocs.yaml +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/LICENSE.md +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/MANIFEST.in +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/README.md +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/Widgets.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/Widgets.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/Makefile +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/callbacks.rst +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/conf.py +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/electron.rst +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/external-widgets.rst +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/for-developers.rst +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/frameworks.rst +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/getting-started.rst +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/index.rst +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/pyodide.rst +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/remote.rst +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/styling.rst +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/widgets/controls.rst +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/widgets/dialogs.rst +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/widgets/display.rst +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/widgets/index.rst +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/widgets/menus.rst +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/widgets/nonvisual.rst +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/docs/widgets/text.rst +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/all_widgets.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/all_widgets_pyodide.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/all_widgets_pyscript.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/box.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/button.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/canvas.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/checkbox.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/colordialog.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/combobox.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/debug_spinbox.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/dial.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/dialog.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/electron/.gitignore +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/electron/.npmrc +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/electron/index.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/electron/main.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/electron/package.json +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/expander.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/external_widgets.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/fixedlayout.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/frame.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/gridbox.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/htmlview.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/image.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/label.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/mdi_widget.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/menu.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/progressbar.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/pyodide_demo.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/pyscript.toml +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/radiobutton.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/remote.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/remote_demo.py +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/remote_demo_async.py +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/scroll_area.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/scrollable.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/scrollbar.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/slider.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/spinbox.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/splitter.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/tab_widget.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/tableview.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/text_entry.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/textarea.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/textentryset.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/textsource.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/togglebutton.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/toolbar.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/treeview.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/examples/videowidget.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/__init__.py +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/pyodide/__init__.py +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/pyodide/log.py +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/Widgets.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/Widgets.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/AbstractScrollArea.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/Box.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/Button.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/CheckBox.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/ColorDialog.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/ComboBox.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/Dial.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/Dialog.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/Expander.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/ExternalWidget.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/FixedLayout.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/Frame.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/GridBox.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/HtmlView.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/Image.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/Label.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/MDIWidget.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/Menu.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/ProgressBar.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/RadioButton.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/ScrollArea.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/ScrollBar.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/Slider.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/SpinBox.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/Splitter.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/StatusBar.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/TabWidget.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/Text.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/TextArea.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/TextEntrySet.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/TextSource.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/ToggleButton.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/ToolBar.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/TopLevel.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/VideoWidget.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/Widget.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/css/WindowMenu.css +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/icons/file.svg +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/icons/folder.svg +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/icons/hdots.svg +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/icons/pgicon.svg +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/icons/pgwidgets-logo.png +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/icons/pgwidgets-logo.svg +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/icons/vdots.svg +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/AbstractScrollArea.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/Box.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/Button.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/Callback.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/Canvas.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/CheckBox.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/ColorDialog.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/ColorWidget.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/ComboBox.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/ComboBoxNative.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/Dial.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/Dialog.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/Expander.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/ExternalWidget.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/FileDialog.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/FixedLayout.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/Frame.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/GridBox.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/HtmlView.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/Image.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/Label.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/MDIWidget.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/Menu.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/MenuAction.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/MenuBar.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/Page.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/ProgressBar.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/RadioButton.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/RemoteInterface.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/ScrollArea.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/ScrollBar.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/Separator.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/Slider.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/SpinBox.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/Splitter.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/StatusBar.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/TableView.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/TextArea.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/TextEntry.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/TextEntrySet.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/TextSource.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/TextWidget.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/Timer.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/ToggleButton.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/ToolBar.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/ToolBarAction.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/TopLevel.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/VideoWidget.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/Widget.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/modules/WindowMenu.js +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js/static/remote.html +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js.egg-info/dependency_links.txt +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js.egg-info/requires.txt +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pgwidgets_js.egg-info/top_level.txt +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/pyproject.toml +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/setup.cfg +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/setup.py +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/tests/test_consistency.py +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/tests/test_recent_additions.py +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/tests/test_static_assets.py +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/tests/test_treeview_diff.py +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/tests/test_treeview_resize.py +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/tests/test_treeview_select.py +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/tests/treeview_diff.mjs +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/tests/treeview_resize.mjs +0 -0
- {pgwidgets_js-0.4.2 → pgwidgets_js-0.5.0}/tests/treeview_select.mjs +0 -0
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
What's New
|
|
2
2
|
==========
|
|
3
3
|
|
|
4
|
+
Recent changes — since ``v0.4.3``
|
|
5
|
+
---------------------------------
|
|
6
|
+
|
|
7
|
+
* TabWidget: new ``movable``, ``detachable`` and ``group`` options.
|
|
8
|
+
Tabs can be dragged between movable TabWidgets of the same group, and
|
|
9
|
+
dropped on the page background to detach them (``page-detach``); see
|
|
10
|
+
:ref:`tab-dragging`.
|
|
11
|
+
* TabWidget: new ``insert_widget()``, ``move_tab()`` and
|
|
12
|
+
``move_tab_from()`` methods, and ``page-move``/``page-reorder``
|
|
13
|
+
callbacks reporting tabs the user dragged. A drag-reorder used to go
|
|
14
|
+
unreported.
|
|
15
|
+
* TabWidget: closing a tab that isn't the current one no longer switches
|
|
16
|
+
to another tab, nor fails.
|
|
17
|
+
|
|
18
|
+
Recent changes — since ``v0.4.2``
|
|
19
|
+
---------------------------------
|
|
20
|
+
|
|
21
|
+
* TreeView / TableView: a column descriptor can now carry
|
|
22
|
+
``sortable: false`` to take that column out of the header-click
|
|
23
|
+
sort. Clicking its header does nothing (in cell-selection mode it
|
|
24
|
+
selects the column instead), and the header drops the pointer cursor
|
|
25
|
+
that advertises a sort. This guards against an accidental sort on a
|
|
26
|
+
column whose values are all equal: it leaves nothing on screen to show
|
|
27
|
+
it happened, and the next edit in that column re-sorts the rows and
|
|
28
|
+
makes the edited row jump.
|
|
29
|
+
* The per-column flag only narrows: ``sortable: true`` on a table built
|
|
30
|
+
with ``sortable=False`` still does not sort. It gates the user's
|
|
31
|
+
gesture only, so ``sort_by_column()`` still works on an opted-out
|
|
32
|
+
column. Columns without the flag behave as before.
|
|
33
|
+
|
|
4
34
|
Recent changes — since ``v0.4.0``
|
|
5
35
|
---------------------------------
|
|
6
36
|
|
|
@@ -375,12 +375,18 @@ TabWidget
|
|
|
375
375
|
|
|
376
376
|
Tabbed container with switchable pages.
|
|
377
377
|
|
|
378
|
-
**Constructor:** ``new Widgets.TabWidget({closable, reorderable, tab_position})``
|
|
378
|
+
**Constructor:** ``new Widgets.TabWidget({closable, reorderable, movable, detachable, group, tab_position})``
|
|
379
379
|
|
|
380
380
|
**Options:**
|
|
381
381
|
|
|
382
382
|
- ``closable`` -- show close buttons on tabs
|
|
383
|
-
- ``reorderable`` --
|
|
383
|
+
- ``reorderable`` -- a tab can be dragged to another position in the tab bar
|
|
384
|
+
- ``movable`` -- a tab can be dragged to another movable TabWidget of the
|
|
385
|
+
same ``group`` (see :ref:`tab-dragging`)
|
|
386
|
+
- ``detachable`` -- a tab can be dropped on the page background (see
|
|
387
|
+
:ref:`tab-dragging`)
|
|
388
|
+
- ``group`` -- tabs move only between TabWidgets with the same group
|
|
389
|
+
(default ``0``)
|
|
384
390
|
- ``tab_position`` -- tab bar position (``"top"``, ``"bottom"``, ``"left"``, ``"right"``)
|
|
385
391
|
|
|
386
392
|
**Methods:**
|
|
@@ -393,6 +399,13 @@ Tabbed container with switchable pages.
|
|
|
393
399
|
- Description
|
|
394
400
|
* - ``add_widget(child, options)``
|
|
395
401
|
- Add a tab. *options* can include ``{title: "..."}``
|
|
402
|
+
* - ``insert_widget(index, child, options)``
|
|
403
|
+
- Insert a tab at position *index* (``-1`` appends).
|
|
404
|
+
* - ``move_tab(child, index)``
|
|
405
|
+
- Move the tab of *child* to position *index* and show it.
|
|
406
|
+
* - ``move_tab_from(src, child, index)``
|
|
407
|
+
- Move the tab of *child* from TabWidget *src* to position *index*
|
|
408
|
+
here (``-1`` appends) and show it.
|
|
396
409
|
* - ``show_widget(child)``
|
|
397
410
|
- Switch to the tab containing *child*.
|
|
398
411
|
* - ``close_widget(child)``
|
|
@@ -417,6 +430,17 @@ Tabbed container with switchable pages.
|
|
|
417
430
|
- ``child-added``, ``child-removed`` -- container child events.
|
|
418
431
|
- ``page-switch`` -- fired when the active tab changes. Handler receives ``(widget, child, index)``.
|
|
419
432
|
- ``page-close`` -- fired when a tab close button is clicked.
|
|
433
|
+
- ``page-move`` -- fired on the destination after the user dragged a tab
|
|
434
|
+
here from another TabWidget. Handler receives ``(widget, src, child, index)``.
|
|
435
|
+
- ``page-reorder`` -- fired after the user dragged a tab to a new
|
|
436
|
+
position in the same TabWidget. Handler receives ``(widget, child, index)``.
|
|
437
|
+
- ``page-detach`` -- fired when the user drops a tab on the page
|
|
438
|
+
background. Handler receives ``(widget, child, x, y)``, the page
|
|
439
|
+
position of the drop. The tab is *not* removed: the handler decides
|
|
440
|
+
what to do with it.
|
|
441
|
+
|
|
442
|
+
The ``move_tab*`` methods and ``insert_widget`` fire no ``page-*``
|
|
443
|
+
callbacks; those report what the user did.
|
|
420
444
|
|
|
421
445
|
.. code-block:: javascript
|
|
422
446
|
|
|
@@ -425,6 +449,51 @@ Tabbed container with switchable pages.
|
|
|
425
449
|
tabs.add_widget(page2, {title: "Second"});
|
|
426
450
|
tabs.add_callback('page-switch', (w) => console.log("switched"));
|
|
427
451
|
|
|
452
|
+
.. _tab-dragging:
|
|
453
|
+
|
|
454
|
+
Dragging tabs
|
|
455
|
+
~~~~~~~~~~~~~
|
|
456
|
+
|
|
457
|
+
Three independent options say what the user can do by dragging a tab:
|
|
458
|
+
|
|
459
|
+
- ``reorderable`` -- drop it elsewhere on its own tab bar to change its
|
|
460
|
+
position (``page-reorder``).
|
|
461
|
+
- ``movable`` -- drop it on another TabWidget with ``movable`` set and the
|
|
462
|
+
same ``group``: on its tab bar, to put it at that position, or on its
|
|
463
|
+
page, to add it at the end (``page-move``). Both TabWidgets must be
|
|
464
|
+
movable. A tab can't be dropped into a TabWidget inside of itself.
|
|
465
|
+
- ``detachable`` -- drop it on the page background, outside of any
|
|
466
|
+
window (``page-detach``). This is the browser's counterpart of
|
|
467
|
+
dragging a tab out of an application onto the desktop. A tab can only
|
|
468
|
+
be dropped there if something has registered for ``page-detach``.
|
|
469
|
+
|
|
470
|
+
A drop anywhere else -- on a TabWidget of another group, on some other
|
|
471
|
+
widget, or outside of the browser window -- cancels the drag. If the
|
|
472
|
+
TabWidget under the pointer won't take the tab, an enclosing TabWidget
|
|
473
|
+
that would is offered it instead.
|
|
474
|
+
|
|
475
|
+
Moves and reorders are made by the TabWidget itself. A detached tab
|
|
476
|
+
has to be given a new home by the ``page-detach`` handler, typically a
|
|
477
|
+
TabWidget (configured like the source) in a new ``TopLevel`` placed at
|
|
478
|
+
the drop position:
|
|
479
|
+
|
|
480
|
+
.. code-block:: javascript
|
|
481
|
+
|
|
482
|
+
let left = new Widgets.TabWidget({movable: true, detachable: true, group: 1});
|
|
483
|
+
let right = new Widgets.TabWidget({movable: true, detachable: true, group: 1});
|
|
484
|
+
// tabs can now be dragged between left and right
|
|
485
|
+
|
|
486
|
+
left.add_callback('page-detach', (w, child, x, y) => {
|
|
487
|
+
let tabs = new Widgets.TabWidget({movable: true, detachable: true,
|
|
488
|
+
group: 1});
|
|
489
|
+
let top = new Widgets.TopLevel({title: "Detached", resizable: true});
|
|
490
|
+
top.set_widget(tabs);
|
|
491
|
+
w.remove(child);
|
|
492
|
+
tabs.add_widget(child, {title: "Detached"});
|
|
493
|
+
top.set_position(x, y);
|
|
494
|
+
top.show();
|
|
495
|
+
});
|
|
496
|
+
|
|
428
497
|
.. _widget-stackwidget:
|
|
429
498
|
|
|
430
499
|
StackWidget
|
|
@@ -90,7 +90,7 @@ def make_demo(name):
|
|
|
90
90
|
btn_icon.set_icon("../pgwidgets_js/static/icons/pgicon.svg",
|
|
91
91
|
[16, 16])
|
|
92
92
|
btn_icon.on("activated",
|
|
93
|
-
|
|
93
|
+
lambda: lbl.set_text("Icon button clicked"))
|
|
94
94
|
hbox.add_widget(btn_a, 0)
|
|
95
95
|
hbox.add_widget(btn_b, 0)
|
|
96
96
|
hbox.add_widget(btn_icon, 0)
|
|
@@ -137,7 +137,7 @@ def make_demo(name):
|
|
|
137
137
|
content.add_widget(Widgets.Label("Editable:"), 0)
|
|
138
138
|
combo2 = Widgets.ComboBox(editable=True, dropdown_limit=5)
|
|
139
139
|
for f in ["Red", "Orange", "Yellow", "Green", "Blue",
|
|
140
|
-
|
|
140
|
+
"Indigo", "Violet"]:
|
|
141
141
|
combo2.append_text(f)
|
|
142
142
|
combo2.on("activated",
|
|
143
143
|
lambda idx, text: lbl.set_text(f"Entered: {text}"))
|
|
@@ -313,7 +313,7 @@ def make_demo(name):
|
|
|
313
313
|
sl1.on("activated",
|
|
314
314
|
lambda val: lbl.set_text(f"Integer: {val}"))
|
|
315
315
|
sl2 = Widgets.Slider(min=0, max=1, step=0.01, value=0.5,
|
|
316
|
-
|
|
316
|
+
dtype="float", track=True)
|
|
317
317
|
sl2.on("activated",
|
|
318
318
|
lambda val: lbl.set_text(f"Float: {val}"))
|
|
319
319
|
content.add_widget(Widgets.Label("Integer (0-100):"), 0)
|
|
@@ -367,8 +367,8 @@ def make_demo(name):
|
|
|
367
367
|
|
|
368
368
|
elif name == "TextArea":
|
|
369
369
|
ta = Widgets.TextArea("This is a multi-line text area.\n\n"
|
|
370
|
-
|
|
371
|
-
|
|
370
|
+
"You can type freely here.\n"
|
|
371
|
+
"Resize the window to see it adapt.")
|
|
372
372
|
subwin = mdi.add_widget(ta,
|
|
373
373
|
{"title": "TextArea",
|
|
374
374
|
"width": 320, "height": 200})
|
|
@@ -390,6 +390,7 @@ def make_demo(name):
|
|
|
390
390
|
src.create_tag("keyword", {"foreground": "#0066cc", "bold": True})
|
|
391
391
|
src.create_tag("string", {"foreground": "#a31515"})
|
|
392
392
|
text = src.get_text()
|
|
393
|
+
|
|
393
394
|
# apply_tag now takes TextBufferRefs; build a small helper.
|
|
394
395
|
def tag_range(name, start, end):
|
|
395
396
|
src.apply_tag(name,
|
|
@@ -99,7 +99,7 @@ def make_demo(name):
|
|
|
99
99
|
btn_icon.set_icon("../pgwidgets_js/static/icons/pgicon.svg",
|
|
100
100
|
[16, 16])
|
|
101
101
|
btn_icon.on("activated",
|
|
102
|
-
|
|
102
|
+
lambda: lbl.set_text("Icon button clicked"))
|
|
103
103
|
hbox.add_widget(btn_a, 0)
|
|
104
104
|
hbox.add_widget(btn_b, 0)
|
|
105
105
|
hbox.add_widget(btn_icon, 0)
|
|
@@ -146,7 +146,7 @@ def make_demo(name):
|
|
|
146
146
|
content.add_widget(Widgets.Label("Editable:"), 0)
|
|
147
147
|
combo2 = Widgets.ComboBox(editable=True, dropdown_limit=5)
|
|
148
148
|
for f in ["Red", "Orange", "Yellow", "Green", "Blue",
|
|
149
|
-
|
|
149
|
+
"Indigo", "Violet"]:
|
|
150
150
|
combo2.append_text(f)
|
|
151
151
|
combo2.on("activated",
|
|
152
152
|
lambda idx, text: lbl.set_text(f"Entered: {text}"))
|
|
@@ -322,7 +322,7 @@ def make_demo(name):
|
|
|
322
322
|
sl1.on("activated",
|
|
323
323
|
lambda val: lbl.set_text(f"Integer: {val}"))
|
|
324
324
|
sl2 = Widgets.Slider(min=0, max=1, step=0.01, value=0.5,
|
|
325
|
-
|
|
325
|
+
dtype="float", track=True)
|
|
326
326
|
sl2.on("activated",
|
|
327
327
|
lambda val: lbl.set_text(f"Float: {val}"))
|
|
328
328
|
content.add_widget(Widgets.Label("Integer (0-100):"), 0)
|
|
@@ -376,8 +376,8 @@ def make_demo(name):
|
|
|
376
376
|
|
|
377
377
|
elif name == "TextArea":
|
|
378
378
|
ta = Widgets.TextArea("This is a multi-line text area.\n\n"
|
|
379
|
-
|
|
380
|
-
|
|
379
|
+
"You can type freely here.\n"
|
|
380
|
+
"Resize the window to see it adapt.")
|
|
381
381
|
subwin = mdi.add_widget(ta,
|
|
382
382
|
{"title": "TextArea",
|
|
383
383
|
"width": 320, "height": 200})
|
|
@@ -399,6 +399,7 @@ def make_demo(name):
|
|
|
399
399
|
src.create_tag("keyword", {"foreground": "#0066cc", "bold": True})
|
|
400
400
|
src.create_tag("string", {"foreground": "#a31515"})
|
|
401
401
|
text = src.get_text()
|
|
402
|
+
|
|
402
403
|
# apply_tag now takes TextBufferRefs; build a small helper.
|
|
403
404
|
def tag_range(name, start, end):
|
|
404
405
|
src.apply_tag(name,
|
|
@@ -246,9 +246,13 @@ WIDGETS = {
|
|
|
246
246
|
"TabWidget": {
|
|
247
247
|
"base": "container",
|
|
248
248
|
"args": [],
|
|
249
|
-
"options": ["closable", "reorderable", "
|
|
249
|
+
"options": ["closable", "reorderable", "movable", "detachable",
|
|
250
|
+
"group", "tab_position"],
|
|
250
251
|
"methods": {
|
|
251
252
|
"add_widget": ["child", "options"],
|
|
253
|
+
"insert_widget": ["index", "child", "options"],
|
|
254
|
+
"move_tab": ["child", "index"],
|
|
255
|
+
"move_tab_from": ["src", "child", "index"],
|
|
252
256
|
"show_widget": ["child"],
|
|
253
257
|
"close_widget": ["child"],
|
|
254
258
|
"set_index": ["index"],
|
|
@@ -260,7 +264,8 @@ WIDGETS = {
|
|
|
260
264
|
"highlight_tab": ["child", "bgcolor"],
|
|
261
265
|
"set_tab_position": ["tabpos"],
|
|
262
266
|
},
|
|
263
|
-
"callbacks": [*CONTAINER_CALLBACKS, "page-switch", "page-close"
|
|
267
|
+
"callbacks": [*CONTAINER_CALLBACKS, "page-switch", "page-close",
|
|
268
|
+
"page-move", "page-reorder", "page-detach"],
|
|
264
269
|
},
|
|
265
270
|
|
|
266
271
|
"StackWidget": {
|
|
@@ -7,7 +7,7 @@ from pyodide.ffi import create_proxy, to_js
|
|
|
7
7
|
from js import Object, Widgets
|
|
8
8
|
|
|
9
9
|
from pgwidgets_js.defs import (WIDGETS, WIDGET_METHODS, CONTAINER_METHODS,
|
|
10
|
-
|
|
10
|
+
CALLBACK_METHODS)
|
|
11
11
|
|
|
12
12
|
# Registry of built widget subclasses, keyed by JS class name. Populated
|
|
13
13
|
# by build_widget_class(). Used by _from_js_val() so that a widget
|
|
@@ -63,6 +63,13 @@
|
|
|
63
63
|
background: #e4e4e4;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
/* A column that has opted out of the header-click sort
|
|
67
|
+
(`sortable: false`) on an otherwise sortable table: clicking it does
|
|
68
|
+
nothing, so don't offer the pointer that says it will. */
|
|
69
|
+
.treeview-header-nosort {
|
|
70
|
+
cursor: default;
|
|
71
|
+
}
|
|
72
|
+
|
|
66
73
|
.treeview-header-cell:last-child {
|
|
67
74
|
border-right: none;
|
|
68
75
|
}
|