schrodinger.ui.qt.icons module¶
Icons for use in Python scripts To use:
import icons icon = QtGui.QIcon(icons.PROJECT_ICON)
Copyright Schrodinger, LLC. All rights reserved.
- schrodinger.ui.qt.icons.get_standard_icon_pixmap(icon_index, size=24)¶
- Get a pixmap of a standard Qt icon - This method will not work if called before the QApplication is started - it will raise a RuntimeError - Parameters
- icon_index (int) – The - QtWidgets.QStyleindex of the desired icon
- size (int) – The pixmap will be a square of size pixels on each side. 
 
- Return type
- QtGui.QPixmap
- Returns
- A pixmap of the requested icon 
- Raises
- RuntimeError – If a QApplication has not been started 
 
- schrodinger.ui.qt.icons.get_validation_pixmaps(size=24)¶
- Get pixmaps used for validation icons - invalid, intermediate and valid - See also - schrodinger.ui.qt.swidgets.SValidIndicatorfor usage of these icons- Note that this method (or any method that calls get_standard_icon_pixmap) will not work if called before the QApplication is started. - Parameters
- size (int) – The pixmap will be a square of size pixels on each side. 
- Return type
- QtGui.QPixmap,- QtGui.QPixmap,- QtGui.QPixmap
- Returns
- The valid, intermediate and invalid icons to use to display the current status of a validated widget 
 
- schrodinger.ui.qt.icons.get_icon(myicon)¶