- Fixed legend not hiding when resizing to 0

- Added the `menu` widget to the topbar.
This commit is contained in:
louisnw
2023-09-06 12:46:52 +01:00
parent 7891c1bc64
commit 8f65a7fc96
4 changed files with 77 additions and 4 deletions

View File

@ -32,6 +32,18 @@ ___
```{py:method} menu(name: str, options: tuple: default: str, separator: bool, func: callable)
* `name`: the name of the menu which can be used to access it from the `topbar` dictionary.
* `options`: The options for each menu item.
* `default`: The initial menu option set.
* `separator`: places a separator line to the right of the menu.
```
___
```{py:method} textbox(name: str, initial_text: str)
* `name`: the name of the text box which can be used to access it from the `topbar` dictionary.