Set background color of the widget. Similar to QTableWidgetItem.setBackground, but accepting a tuple of RGB values instead of QBrush. Parameters ---------- rgb: tuple(int) RGB color in the form of (R, G, B)
(self, rgb)
| 740 | self.le_max_value.setAlignment(flags) |
| 741 | |
| 742 | def setBackground(self, rgb): |
| 743 | """ |
| 744 | Set background color of the widget. Similar to QTableWidgetItem.setBackground, |
| 745 | but accepting a tuple of RGB values instead of QBrush. |
| 746 | |
| 747 | Parameters |
| 748 | ---------- |
| 749 | rgb: tuple(int) |
| 750 | RGB color in the form of (R, G, B) |
| 751 | """ |
| 752 | self.setStyleSheet(get_background_css(rgb, widget="QWidget", editable=False)) |
| 753 | |
| 754 | self.le_min_value.setStyleSheet(get_background_css(rgb, widget="QLineEdit", editable=True)) |
| 755 | self.le_max_value.setStyleSheet(get_background_css(rgb, widget="QLineEdit", editable=True)) |
| 756 | |
| 757 | def setTextColor(self, rgb): |
| 758 | """ |
no test coverage detected