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

BaseNWBWidget #178

Open
bendichter opened this issue Oct 8, 2021 · 0 comments
Open

BaseNWBWidget #178

bendichter opened this issue Oct 8, 2021 · 0 comments

Comments

@bendichter
Copy link
Collaborator

I think we should have a BaseNWBWidget class that all widgets would extend. Something like:

class BaseNWBWidget():
    def __init__(self):
        self.controls = None
        self.figure = None

    @abstractmethod
    def update_figure(self):
        pass

then we can add any functionality that is shared across widgets to this base class. These functions might include exporting the figure as a vector graphic or using threading to manage parallel execution of widgets, etc.

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

No branches or pull requests

1 participant