-
Notifications
You must be signed in to change notification settings - Fork 3
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
[ENH] Abstract Qt/notebook handling in iEEG GUI #14
Comments
Related to mne-tools/mne-python#9586 |
Also need to deal with icon setting https://github.com/mne-tools/mne-python/blob/89dba30445e759ca98102998f6b39eaca292b0fd/mne/viz/backends/_pyvista.py#L89-L105. Ideally perhaps this would be part of the qt/notebook abstraction, too. |
That would be awesome if I quickly went through the list of widgets in #14 and That leaves out |
@GuillaumeFavelier what's required for us to have code that works on PyQt5 and PyQt6? Let's just think about I think we can assume we can get it for free for the iEEG GUI once we make that use the same notebook / Qt abstraction. |
The biggest changes I see would be anything based on So I would suggest using an intermediate variable like the following:
The rest should be straightforward, like changing the actual imports. Of course, it's possible that I miss some details but this is what I remember at the moment. |
I'd be surprised if We should probably look to see how Spyder did it |
Hm... It could be this one: AFAIK, it provides access to unscoped enums. Maybe I didn't try the latest version 😅 Anyway I think using |
And if we could get PyQt5/PyQt6/PySide2/PySide6 compat all at once via |
When I experimented with this I discovered that the resource system has not been migrated to This is problematic for our icons but multiple solutions are suggested in the thread:
I'll share what I have as a draft PR. |
We've completed the abstraction of Qt itself, now the IEEG GUI "just" needs to be migrated to the notebook/Qt abstraction framework. I'll re-title this issue to reflect this. |
The PyQt import handling should be deduplicated across MNE with one abstract function at some point. This will be especially useful when PyQt versions change.
This kind of code is what needs to be deduplicated in
mne.gui._ieeg_locate_gui.py
The text was updated successfully, but these errors were encountered: