Skip to content

callback interface suggestions #64

@marscher

Description

@marscher

Hi there,

thanks for this very useful utility! I just have a few things on my mind to make the callback interface more convenient.
First of all, it would be nice to support multiple callbacks (e.g. like IPyWidgets). So they will be stored in a list, and just invoked in the order of registration. I wonder why the parent interface has not been adopted here, since it is well designed.

Another nice to have feature would be to determine, how the value (path, file) have changed. This could also be analogous to ipywidgets, where you get passed a dictionary with "new", "old" keys to see the difference. Also the reference to the originating widget (e.g. the FileChooser triggering the event) is passed in this dictionary as the "owner" key.

This feature can be used to create backups prior saving a file. But I guess it is pretty general.

In the meantime I'd have to access the private ipywidgets for the Selection and obtain my values from there. But this is not very clean.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions