bec_widgets.utils.bec_plugin_manager.create.widget#
Functions#
|
|
|
|
|
|
|
Create a new widget plugin with the given name. |
Module Contents#
- _commit_added_widget(repo: pathlib.Path, name: str)#
- _editor_cb(ctx: typer.Context, value: bool)#
- _widget_exists(widget_list: list[dict[str, str | bool]], name: str)#
- widget(name: Annotated[str, typer.Argument(help='Enter a name for your widget in snake_case')], use_ui: Annotated[bool, typer.Option(prompt=_USE_UI_MSG, help=_USE_UI_MSG)] = True, open_editor: Annotated[bool, typer.Option(prompt=_OPEN_DESIGNER_MSG, help=_OPEN_DESIGNER_MSG, callback=_editor_cb)] = True)#
Create a new widget plugin with the given name.
If [bold white]use_ui[/bold white] is set, a bec-designer .ui file will also be created. If [bold white]open_editor[/bold white] is additionally set, the .ui file will be opened in bec-designer and the compiled python version will be updated when changes are made and saved.