You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am going through the process of adding a source and have a couple of suggestions that may help the user.
When I first went to add a video, the program crashed.
The cause was that I was missing opencv. It would be nice if you could prevent an ignorant user like myself from crashing the program by adding a try except clause such as:
try:
importcv2except:
# show a dialog explaining that the user needs to install opencv using pip install pybehave[video] or link to the documentation
The docs do mention how to install the extra dependencies here. I suggest reiterating this information of how to add the dependency here where at the moment it only describes that opencv-python is required, not how to add it.
Another suggestion is to add labels/descriptions of the attributes or a link to documentation directly in this dialog (and other SourceParametersDialogs).
This is a great suggestion and something I've been interested in adding for a little while now. Your suggestion to catch it at the import point made this really straightforward and clean to implement. Now, if you try to use a feature that requires an extra, a dialog like the below will pop up:
I've also made it so the '?' buttons in the two dialogs you sent link out to the corresponding documentation pages. I'll also work on adding the same feature for Widgets and EventLoggers.
I am going through the process of adding a source and have a couple of suggestions that may help the user.
When I first went to add a video, the program crashed.

The cause was that I was missing opencv. It would be nice if you could prevent an ignorant user like myself from crashing the program by adding a try except clause such as:
The docs do mention how to install the extra dependencies here. I suggest reiterating this information of how to add the dependency here where at the moment it only describes that
opencv-python
is required, not how to add it.Another suggestion is to add labels/descriptions of the attributes or a link to documentation directly in this dialog (and other SourceParametersDialogs).
A link to included sources docs in this dialog may be useful as well:

The text was updated successfully, but these errors were encountered: