schrodinger.ui.qt.forcefield.pathselectorwidget module¶
- class schrodinger.ui.qt.forcefield.pathselectorwidget.PathSelectorWidget(parent, suggestion_limit)¶
Bases:
schrodinger.ui.qt.recent_completer.BrowsePlaceholderRecentCombo
This class provides widget to add locations with ‘Browse…’ as the last item. Clicking on it will allow user to add more directories from directory selector. Note: if user selects/adds some directory, it will be moved to top of list.
- Variables
newLocationSelected (QtCore.pyqtSignal) – signal indication that new path is added and selected.
- newLocationSelected¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- __init__(parent, suggestion_limit)¶
- Parameters
suggestion_limit – It is count of maximum items that can be displayed in the widget.
- addAndSelectLocationItem(location_item)¶
Adds location item to the list and selects it.
- Parameters
location_item – name of item to be added.
- getLocationItems()¶
Returns list of location items present in list. :rtype: list[str] :return: list of user added items.
- getTopLocationItem()¶
Returns empty string if no item is present, top item in list otherwise. :rtype: str :return: Combobox first item.