schrodinger.ui.qt.rename_favorite_dialog module

class schrodinger.ui.qt.rename_favorite_dialog.RenameFavoriteDialog(name, parent=None)

Bases: PyQt6.QtWidgets.QDialog

A dialog that allows user to rename the display name of the favorite button inside favorite toolbar.

__init__(name, parent=None)
Parameters

parent (QtWidgets.QtWidget) – The Qt parent for the dialog.

enableSaveButton(text)

A slot triggered when text changes in the line edit control.

Parameters

text (str) – text string typed in the name line edit

show()

Show the rename favorite dialog

accept()

When the user enters name and press enter

See Qt documentation for additional method documentation.

reject()

Cancel the changes and close the dialog

schrodinger.ui.qt.rename_favorite_dialog.rename_favorite(name)

Show the rename favorite dialog and return the updated name