Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: event support in component_vue for calling python callbacks. #312

Conversation

maartenbreddels
Copy link
Contributor

Argument like 'event_foo' will be available as the function foo
in the vue template.

Copy link
Contributor Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

Argument like 'event_foo' will be available as the function foo
in the vue template.
@maartenbreddels maartenbreddels force-pushed the 10-03-feat_event_support_in_component_vue_for_calling_python_callbacks branch from ece20df to db44d3b Compare October 4, 2023 21:04
@@ -12,20 +12,35 @@
P = typing_extensions.ParamSpec("P")


def _widget_from_signature(name, base_class: Type[widgets.Widget], func: Callable[..., None]) -> Type[widgets.Widget]:
traits = {}
def _widget_from_signature(classname, base_class: Type[widgets.Widget], func: Callable[..., None], event_prefix: str) -> Type[widgets.Widget]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the change from name to classname a part of adding event functionality, or for general refactoring purposes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was an unrelated change actually. The name was overridden in the for loop, causing the class name to be useless when errors occurred. Should have been a separate commit.

@maartenbreddels maartenbreddels merged commit 766f0ce into master Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants