schrodinger.application.desmond.cwidget module

Widgets used mainly in Desmond and MCPRO+ panels.

Copyright Schrodinger, LLC. All rights reserved.

class schrodinger.application.desmond.cwidget.AdvLabel(text, parent, max_height=None)

Bases: PyQt6.QtWidgets.QLabel

A mutli-line label with small, bold text.

__init__(text, parent, max_height=None)
class schrodinger.application.desmond.cwidget.EntryField(parent, label_text, initial_text='')

Bases: PyQt6.QtWidgets.QWidget

A special composite widget which contains a labeled line edit field.

__init__(parent, label_text, initial_text='')

Create a labeled text entry area with text ‘label_text’, set the initial text value to ‘initial_text’ and if ‘units_text’ is defined then add a label after the editable text to display the lable

setText(text)

Set the text for the QLineEdit part of the entry field

text()

Returns the text for the QLineEdit part of the entry field

setValidator(validator)
hasAcceptableInput()
class schrodinger.application.desmond.cwidget.FileEntry(parent, label_text, fdlg_title, fdlg_ftypes, initial_dir='', command=None)

Bases: PyQt6.QtWidgets.QWidget

Class combining a QLabel, QLineEdit, and a QPushButton (Browse…).

__init__(parent, label_text, fdlg_title, fdlg_ftypes, initial_dir='', command=None)
pathModified()

Called when the selected file path is modified.

browse()

Called when the user clicks on the Browse button

text()

Get the value of the entry field.

setText(value)

Set the value of the entry field.