Skip to content

Commit

Permalink
docs: Add Table and Quantity to API docs (#493)
Browse files Browse the repository at this point in the history
* Add Table to API docs

* add to widget_overview, add quantity too

Co-authored-by: Talley Lambert <talley.lambert@gmail.com>
  • Loading branch information
dstansby and tlambert03 committed Nov 10, 2022
1 parent d2fc287 commit 237edff
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/api/widgets.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Value Widgets
DateTimeEdit
DateEdit
TimeEdit
Table
QuantityEdit
EmptyWidget
Expand Down
2 changes: 2 additions & 0 deletions docs/usage/widget_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ following `ValueWidgets` track some `value`:
DateTimeEdit
DateEdit
TimeEdit
Table
QuantityEdit
```

```{list-table}
Expand Down
2 changes: 1 addition & 1 deletion magicgui/widgets/_concrete.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,4 +1045,4 @@ def label_width(self, width):

@backend_widget
class QuantityEdit(ValueWidget):
"""A combined LineEdit and ComboBox to edit a pint.Quantity."""
"""A combined `LineEdit` and `ComboBox` to edit a `pint.Quantity`."""
2 changes: 1 addition & 1 deletion magicgui/widgets/_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def __repr__(self) -> str:


class Table(ValueWidget, _ReadOnlyMixin, MutableMapping[TblKey, list]):
"""A table widget representing columnar or 2D data with headers.
"""A widget to represent columnar or 2D data with headers.
Tables behave like plain `dicts`, where the keys are column headers and the
(list-like) values are column data.
Expand Down

0 comments on commit 237edff

Please sign in to comment.