schrodinger.maestro_utils.surface_manager.comment_edit module¶
- class schrodinger.maestro_utils.surface_manager.comment_edit.CommentEdit(parent=None)¶
Bases:
QWidgetUI component for editing comment with accept and reject buttons.
- Variables:
commentAccepted – Signal emitted when a comment is accepted.
commentRejected – Signal emitted when a comment is rejected.
- commentAccepted¶
A
pyqtSignalemitted by instances of the class.
- commentRejected¶
A
pyqtSignalemitted by instances of the class.
- __init__(parent=None)¶
Constructor for CommentEdit. Sets up the UI and connects the signals.
- setupConnections()¶
Sets up the connections for the accept and reject buttons.
- startEdit(initial_comment: str = '')¶
Starts the comment edit mode with the given initial comment.
- Parameters:
initial_comment – Initial comment text to display in the line edit.
- accept()¶
Notifies clients that the comment has been accepted and emits the comment text.
- reject()¶
Notifies clients that the comment has been rejected.
- updateButtons()¶
Updates the state of the accept and reject buttons based on the comment text.
- eventFilter(obj: QObject, event: QEvent)¶
Event filter to handle Enter key press in the text edit.
- Parameters:
obj – The object that the event is being sent to.
event – The event object.