Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#6271 closed defect (fixed)

in techpreview Help Viewer (browser), trying to copy text 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 Greg Couch)

trying to copy text from ChimeraX browser by highlighting it and using (Mac)
command-c gives a traceback. I wasn't necessarily expecting it to work, just operating on autopilot and using the method I would normally use to copy text from a browser window.

AttributeError: '_LoggingPage' object has no attribute 'Copy'

File "/Users/meng/Desktop/ChimeraX_techpreview.app/Contents/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/chimerax/ui/widgets/htmlview.py", line 203, in
self.copy_sc.activated.connect(lambda: self.page().triggerAction(self.page().Copy))

[using PyQt6]

Change History (3)

comment:1 by Greg Couch, 4 years ago

using PyQt6

comment:2 by Greg Couch, 4 years ago

Description: modified (diff)

comment:3 by Zach Pearson, 4 years ago

Resolution: fixed
Status: assignedclosed

As I said in comment:4:ticket:6270, QWebEnginePage moved to QtWebEngineCore. Simply importing it from the correct location allowed me to copy text with Command-C on my mac, but the context menu functionality is still broken per #6303.

Closing this ticket, as it should be fixed by this commit.

Last edited 4 years ago by Zach Pearson (previous) (diff)
Note: See TracTickets for help on using tickets.