-
Notifications
You must be signed in to change notification settings - Fork 49
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: add toolbar widget #597
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #597 +/- ##
==========================================
- Coverage 87.98% 87.56% -0.42%
==========================================
Files 39 40 +1
Lines 4609 4727 +118
==========================================
+ Hits 4055 4139 +84
- Misses 554 588 +34
☔ View full report in Codecov by Sentry. |
this is mostly working now for both backends... but doesn't yet have icon support. I might want to add icons in a new PR. superqt recently got support for iconify ... and it would nice to be able to provide the same flexibility for ipywidgets. |
@larsoner, i know you haven't dug too deeply into how things are structured here, but if you have a moment to look at the general protocol, and backend implementations here (ipynb, qt), I'd welcome your input. I implemented a toolbar as a top level widget ( still need to write tests, and as mentioned above, still contemplating how to add icons (see related #598) |
So far so good! To get a "native feel" I have generically:
then in my Qt half doing:
and in the NB half doing:
plus the rest of the stuff from mne-tools/mne-python#11990 I get a decent result (other than Qt icons as expected) except for I think the toolbar button text being wrong on Qt?:
|
thanks!
ah yep, that's related to icons being unfinished. will fix question for you regarding API: |
I think the explicit one is better and what I would expect. |
i'm going to merge this and continue work in #604 |
closes #593
this PR includes #598, and should wait for it to merge