diff --git a/src/bundles/profile_grids/bundle_info.xml b/src/bundles/profile_grids/bundle_info.xml index 32491bd0c..dccd057f5 100644 --- a/src/bundles/profile_grids/bundle_info.xml +++ b/src/bundles/profile_grids/bundle_info.xml @@ -1,4 +1,4 @@ - diff --git a/src/bundles/profile_grids/src/grid_canvas.py b/src/bundles/profile_grids/src/grid_canvas.py index 54173ba79..299b44a8d 100644 --- a/src/bundles/profile_grids/src/grid_canvas.py +++ b/src/bundles/profile_grids/src/grid_canvas.py @@ -314,6 +314,7 @@ def mouse_click(self, event): else: if not shifted: for item in self.chosen_cells.values(): + item.hide() self.main_scene.removeItem(item) self.chosen_cells.clear() from Qt.QtGui import QPen, QColor, QPolygonF @@ -563,13 +564,8 @@ def __init__(self, session, seqs): button_layout.addWidget(centering_widget, alignment=Qt.AlignCenter) from Qt.QtWidgets import QDialogButtonBox as qbbox - bbox = qbbox(qbbox.Close | qbbox.Help) + bbox = qbbox(qbbox.Close) bbox.rejected.connect(self.close) - if self.help: - from chimerax.core.commands import run - bbox.helpRequested.connect(lambda *, run=run, ses=self.session: run(ses, "help " + self.help)) - else: - bbox.button(qbbox.Help).setEnabled(False) layout.addWidget(bbox) self.setLayout(layout) diff --git a/src/bundles/profile_grids/src/tool.py b/src/bundles/profile_grids/src/tool.py index e2acd24a2..dd146f43c 100644 --- a/src/bundles/profile_grids/src/tool.py +++ b/src/bundles/profile_grids/src/tool.py @@ -15,8 +15,7 @@ class ProfileGridsTool(ToolInstance): """ Viewer displays a multiple sequence alignment as a grid/table """ - #help = "help:user/tools/sequenceviewer.html" - help = None + help = "help:user/tools/profilegrid.html" def __init__(self, session, tool_name, alignment=None): """ if 'alignment' is None, then we are being restored from a session and @@ -102,6 +101,7 @@ def fill_context_menu(self, menu, x, y): action = QAction("List Sequence Names", cell_menu) action.triggered.connect(lambda *args, f=self.grid_canvas.list_from_cells: f()) cell_menu.addAction(action) + cell_menu.setEnabled(bool(self.grid_canvas.chosen_cells)) alignment_menu = cell_menu.addMenu("New Alignment") viewers = self.session.alignments.registered_viewers("alignment") viewers.sort()