Skip to content

Commit

Permalink
Merge pull request #2204 from freakboy3742/doc-support-update
Browse files Browse the repository at this point in the history
Correct some discrepancies and inconsistencies in widget support docs.
  • Loading branch information
mhsmith authored Nov 8, 2023
2 parents 69fc00c + 3714609 commit 536a60f
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 19 deletions.
1 change: 1 addition & 0 deletions changes/2204.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Some inconsistencies in widget support documentation were corrected.
2 changes: 1 addition & 1 deletion docs/reference/api/documentapp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The top-level representation of an application that manages documents.
.. csv-filter:: Availability (:ref:`Key <api-status-key>`)
:header-rows: 1
:file: ../data/widgets_by_platform.csv
:included_cols: 4,5,6,7,8,9
:included_cols: 4,5,6,7,8,9,10
:exclude: {0: '(?!(DocumentApp|Component))'}


Expand Down
16 changes: 16 additions & 0 deletions docs/reference/api/mainwindow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@ The main window of the application.
:align: center
:width: 450px

.. group-tab:: Web |beta|

.. .. figure:: /reference/images/mainwindow-web.png
.. :align: center
.. :width: 300px
Screenshot not available

.. group-tab:: Textual |beta|

.. .. figure:: /reference/images/mainwindow-textual.png
.. :align: center
.. :width: 300px
Screenshot not available

Usage
-----

Expand Down
7 changes: 0 additions & 7 deletions docs/reference/api/widgets/multilinetextinput.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ A scrollable panel that allows for the display and editing of multiple lines of

Not supported

.. rst-class:: widget-support
.. csv-filter:: Availability (:ref:`Key <api-status-key>`)
:header-rows: 1
:file: ../../data/widgets_by_platform.csv
:included_cols: 4,5,6,7,8,9,10
:exclude: {0: '(?!^(MultilineTextInput|Component)$)'}

Usage
-----

Expand Down
12 changes: 2 additions & 10 deletions docs/reference/api/widgets/selection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,14 @@ A widget to select a single option from a list of alternatives.
:align: center
:width: 300px

.. group-tab:: Web
.. group-tab:: Web |no|

Not supported

.. group-tab:: Textual
.. group-tab:: Textual |no|

Not supported

.. rst-class:: widget-support
.. csv-filter:: Availability (:ref:`Key <api-status-key>`)
:header-rows: 1
:file: ../../data/widgets_by_platform.csv
:included_cols: 4,5,6,7,8,9,10
:exclude: {0: '(?!^(Selection|Component)$)'}


Usage
-----

Expand Down
8 changes: 8 additions & 0 deletions docs/reference/api/window.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ An operating system-managed container of widgets.

Not supported

.. group-tab:: Web |no|

Not supported

.. group-tab:: Textual |no|

Not supported

Usage
-----

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/data/widgets_by_platform.csv
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Component,Type,Component,Description,macOS,GTK,Windows,iOS,Android,Web,Terminal
Application,Core Component,:class:`~toga.App`,The application itself,|y|,|y|,|y|,|y|,|y|,|b|,|b|
DocumentApp,Core Component,:class:`~toga.DocumentApp`,An application that manages documents.,|b|,|b|,,,,,
Window,Core Component,:class:`~toga.Window`,An operating system-managed container of widgets.,|y|,|y|,|y|,|y|,|y|,|b|,|b|
Window,Core Component,:class:`~toga.Window`,An operating system-managed container of widgets.,|y|,|y|,|y|,,,,
MainWindow,Core Component,:class:`~toga.MainWindow`,The main window of the application.,|y|,|y|,|y|,|y|,|y|,|b|,|b|
ActivityIndicator,General Widget,:class:`~toga.ActivityIndicator`,A spinning activity animation,|y|,|y|,,,,|b|,
Button,General Widget,:class:`~toga.Button`,Basic clickable Button,|y|,|y|,|y|,|y|,|y|,|b|,|b|
Expand Down

0 comments on commit 536a60f

Please sign in to comment.