-
Notifications
You must be signed in to change notification settings - Fork 122
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
Modernize event filter gui #23778
Modernize event filter gui #23778
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Starting FilterEvents in the workbench with python2 I get
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_qt5agg.py", line 155, in __draw_idle_agg
self.draw()
File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_qt5agg.py", line 128, in draw
self.update()
RuntimeError: wrapped C/C++ object of type MplFigureCanvas has been deleted
with python3 I get
Traceback (most recent call last):
File "/home/rwp/mantid/qt/applications/workbench/workbench/app/mainwindow.py", line 291, in <lambda>
action.triggered.connect(lambda checked, script=script: self.launchCustomGUI(script))
File "/home/rwp/mantid/qt/applications/workbench/workbench/app/mainwindow.py", line 254, in launchCustomGUI
execfile(script)
NameError: name 'execfile' is not define
|
||
|
||
app = qapp() | ||
app, within_mantid = get_qapplication() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
I'm also seeing an error when trying to start it in MantidPlot:
|
Nevermind about my bug above. One of the Python modules hadn't rebuilt properly. It's fine in MantidPlot. |
This is a duplicate of the one in mantidqt and should go away.
Replacing lots of things with qtpy and abstracting off the backend running in matplotlib
6fc4c48
to
9a9f397
Compare
…ter_gui Conflicts: scripts/gui_helper.py
The main task was to make the gui qt4/qt5 compatible so something could be included in the new workbench.
Part of what was done was to refactor a some associated code into an abstraction of the matplotlib backends to access widgets in
MPLwidgets
and addgui_helper.py
to assist in setting the correct matplotlib backend and launch custom guis with less boilerplate code. They should go inmantidqt
, but that isn't available from mantidplot currently.To test:
mantidpython .../scripts/FilterEvents.py
andmantidpython --classic .../scripts/FilterEvents.py
.This is associated with #23762.
This does not require release notes because workbench.
Reviewer
Please comment on the following (full description):
Code Review
Functional Tests
Does everything look good? Mark the review as Approve. A member of
@mantidproject/gatekeepers
will take care of it.