Skip to content

Commit

Permalink
Doc: added ready-to-use widgets, updated shots
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Oct 23, 2023
1 parent 7942e75 commit b3988e6
Show file tree
Hide file tree
Showing 18 changed files with 83 additions and 16 deletions.
26 changes: 13 additions & 13 deletions doc/examples.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _examples:

Examples
========
Data set examples
=================

Basic example
-------------
Expand All @@ -26,47 +26,47 @@ The two lines above execute the `guidata test launcher` :
All :mod:`guidata` items demo
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. literalinclude:: ../guidata/tests/test_all_items.py
.. literalinclude:: ../guidata/tests/dataset/test_all_items.py
:start-after: guitest:

.. image:: images/screenshots/all_items.png

All (GUI-related) :mod:`guidata` features demo
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. literalinclude:: ../guidata/tests/test_all_features.py
.. literalinclude:: ../guidata/tests/dataset/test_all_features.py
:start-after: guitest:

.. image:: images/screenshots/all_features.png

Embedding guidata objects in GUI layouts
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. literalinclude:: ../guidata/tests/test_editgroupbox.py
.. literalinclude:: ../guidata/tests/dataset/test_editgroupbox.py
:start-after: guitest:

.. image:: images/screenshots/editgroupbox.png

Data item groups and group selection
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. literalinclude:: ../guidata/tests/test_bool_selector.py
.. literalinclude:: ../guidata/tests/dataset/test_bool_selector.py
:start-after: guitest:

.. image:: images/screenshots/bool_selector.png

Activable data sets
^^^^^^^^^^^^^^^^^^^

.. literalinclude:: ../guidata/tests/test_activable_dataset.py
.. literalinclude:: ../guidata/tests/dataset/test_activable_dataset.py
:start-after: guitest:

.. image:: images/screenshots/activable_dataset.png

Data set groups
^^^^^^^^^^^^^^^

.. literalinclude:: ../guidata/tests/test_datasetgroup.py
.. literalinclude:: ../guidata/tests/dataset/test_datasetgroup.py
:start-after: guitest:

.. image:: images/screenshots/datasetgroup.png
Expand All @@ -77,29 +77,29 @@ Utilities
Update/restore a dataset from/to a dictionary
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. literalinclude:: ../guidata/tests/test_updaterestoredataset.py
.. literalinclude:: ../guidata/tests/unit/test_updaterestoredataset.py
:start-after: guitest:

Create a dataset class from a function signature
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. literalinclude:: ../guidata/tests/test_dataset_from_func.py
.. literalinclude:: ../guidata/tests/unit/test_dataset_from_func.py
:start-after: guitest:

Create a dataset class from a function dictionary
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. literalinclude:: ../guidata/tests/test_dataset_from_dict.py
.. literalinclude:: ../guidata/tests/unit/test_dataset_from_dict.py
:start-after: guitest:

Data set HDF5 serialization/deserialization
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. literalinclude:: ../guidata/tests/test_loadsave_hdf5.py
.. literalinclude:: ../guidata/tests/dataset/test_loadsave_hdf5.py
:start-after: guitest:

Data set JSON serialization/deserialization
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. literalinclude:: ../guidata/tests/test_loadsave_json.py
.. literalinclude:: ../guidata/tests/dataset/test_loadsave_json.py
:start-after: guitest:
Binary file modified doc/images/basic_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/screenshots/__init__.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/screenshots/activable_dataset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/screenshots/all_features.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/screenshots/all_items.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/images/screenshots/arrayeditor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/screenshots/bool_selector.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/images/screenshots/codeeditor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/images/screenshots/collectioneditor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/images/screenshots/console.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/images/screenshots/dataframeeditor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/screenshots/datasetgroup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/screenshots/editgroupbox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/images/screenshots/importwizard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ Welcome to :mod:`guidata`'s documentation!
:align: center

Based on the Qt library :mod:`guidata` is a Python library generating graphical
user interfaces for easy dataset editing and display. It also provides helpers
and application development tools for Qt.
user interfaces for easy dataset editing and display. It also provides :ref:`widgets`
(Python console, code editor, array editor, etc. - see ), helpers and application
development tools for Qt.

.. figure:: images/layout_example.png
:class: invert-in-dark-mode
Expand All @@ -33,6 +34,7 @@ Table of contents
overview
installation
examples
widgets
dev/index
reference/index

Expand Down
4 changes: 3 additions & 1 deletion doc/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ This library aims to provide these features thanks to automatic graphical user
interface generation for data set editing and display. Widgets inside GUIs are
automatically generated depending on each data item type.

The :mod:`guidata` library also provides the following features:
The :mod:`guidata` library provides the following modules:

* :py:mod:`guidata.dataset`: data set definition and manipulation
* :py:mod:`guidata.widgets`: ready-to-use Qt widgets (console, code editor, array editor, etc.)
* :py:mod:`guidata.qthelpers`: Qt helpers
* :py:mod:`guidata.configtools`: library/application data management
* :py:mod:`guidata.guitest`: automatic GUI-based test launcher
Expand Down
63 changes: 63 additions & 0 deletions doc/widgets.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
.. _widgets:

Ready-to-use widgets
====================

As a complement to the :py:mod:`guidata.dataset` module which focus on automatic
GUI generation for data sets editing and display, the :py:mod:`guidata.widgets`
module provides a set of ready-to-use widgets for building interactive GUIs.

.. note:: Most of the widgets originally come from the `Spyder`_ project
(Copyright © Spyder Project Contributors, MIT-licensed). They were
adapted to be used outside of the Spyder IDE and to be compatible with
guidata internals.

.. _Spyder: https://github.com/spyder-ide/spyder

Python console
--------------

.. literalinclude:: ../guidata/tests/widgets/test_console.py
:start-after: guitest:

.. image:: images/screenshots/console.png

Code editor
-----------

.. literalinclude:: ../guidata/tests/widgets/test_codeeditor.py
:start-after: guitest:

.. image:: images/screenshots/codeeditor.png

Array editor
------------

.. literalinclude:: ../guidata/tests/widgets/test_arrayeditor.py
:start-after: guitest:

.. image:: images/screenshots/arrayeditor.png

Collection editor
-----------------

.. literalinclude:: ../guidata/tests/widgets/test_collectionseditor.py
:start-after: guitest:

.. image:: images/screenshots/collectioneditor.png

Dataframe editor
----------------

.. literalinclude:: ../guidata/tests/widgets/test_dataframeeditor.py
:start-after: guitest:

.. image:: images/screenshots/dataframeeditor.png

Import wizard
-------------

.. literalinclude:: ../guidata/tests/widgets/test_importwizard.py
:start-after: guitest:

.. image:: images/screenshots/importwizard.png

0 comments on commit b3988e6

Please sign in to comment.