schrodinger.application.jaguar.gui.filedialog module

Custom file dialogs for the Jaguar GUIs

class schrodinger.application.jaguar.gui.filedialog.FileDialogWithExtraCombo(parent, caption, lbl_text, combo_items)

Bases: schrodinger.ui.qt.filedialog.FileDialog

A Qt file dialog with an extra combo box about the filename text edit

__init__(parent, caption, lbl_text, combo_items)

Create a new file dialog with the specified label text and combo box items.

Parameters
  • parent (PyQt5.QtWidgets.QWidget) – The Qt parent widget

  • caption (str) – The title of the dialog

  • lbl_text (str) – The label text to display next to the extra combo box

  • combo_items (tuple) – A list of strings to add to the combo box

selectedOption()

Return the currently selected index for the extra combo box

Returns

The currently selected index for the extra combo box

Return type

int

class schrodinger.application.jaguar.gui.filedialog.ReadFileDialog(parent, allowed_options=None)

Bases: schrodinger.application.jaguar.gui.filedialog.FileDialogWithExtraCombo

An Open dialog both with an extra combo box to specify what should be read from the specified file.

Variables
  • GEOM_AND_SETTINGS (int) – The index of the “Geometry and settings” option, as returned by selectedOption().

  • GEOM_ONLY (int) – The index of the “Geometry only” option, as returned by selectedOption().

  • SETTINGS_ONLY (int) – The index of the “Settings only” option, as returned by selectedOption().

GEOM_AND_SETTINGS = 0
GEOM_ONLY = 1
SETTINGS_ONLY = 2
OPTION_TEXT = {0: 'Geometry and settings', 1: 'Geometry only', 2: 'Settings only'}
__init__(parent, allowed_options=None)

Create a new file dialog with the specified label text and combo box items.

Parameters
  • parent (PyQt5.QtWidgets.QWidget) – The Qt parent widget

  • caption (str) – The title of the dialog

  • lbl_text (str) – The label text to display next to the extra combo box

  • combo_items (tuple) – A list of strings to add to the combo box