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

A pyqtSignal emitted by instances of the class.

__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.