Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
loonghao committed Dec 17, 2018
1 parent a85b469 commit 0f14bc3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,28 @@ menu.add_script(parent=menu,
tags=["gold", "silver", "bronze"])

```
An example for The Foundry Mari can be found in `launchformari.py`

To show the menu in Mari:

```python
import scriptsmenu.launchformari as launchformari

menu = launchformari.main(title="My Scripts")

menu.add_script(parent=menu,
title="Script A",
command="print('A')",
sourcetype='python',
tags=["foobar", "nugget"])

menu.add_script(parent=menu,
title="Script B",
command="print('B')",
sourcetype='python',
tags=["gold", "silver", "bronze"])

```
##### Configuration

The menu can be reconstructed with help of a `.json` configuration file.
Expand Down

0 comments on commit 0f14bc3

Please sign in to comment.