schrodinger.trajectory.trajectory_gui_dir.traj_plot_widgets module

Peripheral widgets for the plot panel

Copyright Schrodinger, LLC. All rights reserved.

class schrodinger.trajectory.trajectory_gui_dir.traj_plot_widgets.PlotTitleLineEdit(parent=None)

Bases: PyQt6.QtWidgets.QLineEdit

Line Edit used in plot titles Editing is disabled until double clicked

__init__(parent=None)
mouseDoubleClickEvent(self, a0: QMouseEvent)
focusOutEvent(self, a0: QFocusEvent)
keyPressEvent(self, a0: QKeyEvent)
allowEditing(enable)

Allows the editing of the line edit

moveCursorToBeginning()

Move the cursor to the beginning of the line edit. This helps to show the start of the title text in cases of long plot titles.