Opened 4 years ago
Closed 4 years ago
#6270 closed defect (fixed)
in techpreview, trying to get context menu in ChimeraX help viewer gives traceback
| Reported by: | Elaine Meng | Owned by: | Greg Couch |
|---|---|---|---|
| Priority: | moderate | Milestone: | |
| Component: | Help System | Version: | |
| Keywords: | Cc: | chimerax-programmers@… | |
| Blocked By: | Blocking: | ||
| Notify when closed: | Platform: | all | |
| Project: | ChimeraX |
Description (last modified by )
Ctrl-click in main body of ChimeraX help viewer (browser) window which would normally give a context menu on Mac gives the following traceback in the tech preview build. The other daily build does not have this problem.
Traceback (most recent call last):
File "/Users/meng/Desktop/ChimeraX_techpreview.app/Contents/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/chimerax/help_viewer/tool.py", line 67, in contextMenuEvent
from Qt.QtWebEngineWidgets import QWebEnginePage
ImportError: cannot import name 'QWebEnginePage' from 'Qt.QtWebEngineWidgets' (/Users/meng/Desktop/ChimeraX_techpreview.app/Contents/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/Qt/QtWebEngineWidgets.py)
ImportError: cannot import name 'QWebEnginePage' from 'Qt.QtWebEngineWidgets' (/Users/meng/Desktop/ChimeraX_techpreview.app/Contents/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/Qt/QtWebEngineWidgets.py)
File "/Users/meng/Desktop/ChimeraX_techpreview.app/Contents/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/chimerax/help_viewer/tool.py", line 67, in contextMenuEvent
from Qt.QtWebEngineWidgets import QWebEnginePage
[using PyQt6]
Change History (4)
comment:1 by , 4 years ago
comment:2 by , 4 years ago
| Description: | modified (diff) |
|---|---|
| Reporter: | changed from to |
comment:3 by , 4 years ago
| Reporter: | changed from to |
|---|
comment:4 by , 4 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
As I said in comment:3:ticket:6303, QWebEnginePage moved to QtWebEngineCore. After I made that change, this traceback went away and I was able to copy text with Command-C on macOS.
Since this ticket is mostly about the QWebEnginePage traceback and tickets #6271 and #6303 handle copying with Command-C and the context menu respectively, I'll close this one.
Fixed in this commit.
using PyQt6