schrodinger.ui.qt.standard_widgets.combo_boxes module¶
Module containing classes for combo boxes styled for use in Schrodinger panels.
- class schrodinger.ui.qt.standard_widgets.combo_boxes.ItalicsPlaceholderComboBox¶
Bases:
PyQt6.QtWidgets.QComboBox
A QtWidgets.QComboBox which draws the placeholder text in italics. Use combo.setPlaceholderText() to set the text, and combo.setCurrentIndex(-1) to show it.
- paintEvent(event)¶
This reimplements QComboBox.paintEvent based on the C++ implementation.
It uses italic font to paint placeholder text when the index is -1