Skip to content

Commit

Permalink
Update README.md for icon support
Browse files Browse the repository at this point in the history
  • Loading branch information
rma6 authored Apr 12, 2024
1 parent 1eafe15 commit c5639dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class creates the selectable part of the menu (you can click it). It requires a
command **(but NOT both)** and has various other options

```Python
ContextCommand(name: str, command: str = None, python: 'function' = None, params: str = None, command_vars: list = None)
ContextCommand(name: str, command: str = None, python: 'function' = None, params: str = None, command_vars: list = None, icon_path: str = None)
```

Python functions can be passed to this method, regardless of their location. **However, the function must accept only
Expand Down Expand Up @@ -234,11 +234,11 @@ Any command passed (as a string) will be directly ran from the shell.

The [FastCommand](https://context-menu.readthedocs.io/en/latest/context_menu.html#context_menu.menus.FastCommand) class
is an extension of the ContextMenu class and allows you to quickly create a single entry menu. It expects a name, type,
and command/function.
command/function and an optional icon path.

```python
FastCommand(
name: str, type: str, command: str = None, python: 'function' = None, params: str = '', command_vars: list = None)
name: str, type: str, command: str = None, python: 'function' = None, params: str = '', command_vars: list = None, icon_path: str = None)
```

```python
Expand Down

0 comments on commit c5639dd

Please sign in to comment.