Skip to content
Snippets Groups Projects

Add is_commutative and is_distributive

Open Robier Al Kaadi requested to merge commutative into master
5 files
+ 225
2
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -31,7 +31,10 @@ class ColorButton(QPushButton):
self.set_color(self._default)
def set_color(self, color: QColor):
"""Set new color."""
"""Set new color.
color : QColor
The new color of the button.
"""
if color != self._color:
self._color = color
self._color_changed.emit(color)
@@ -42,7 +45,10 @@ class ColorButton(QPushButton):
self.setStyleSheet("")
def set_text_color(self, color: QColor):
"""Set text color."""
"""Set text color.
color : QColor
The new color of the text in the button.
"""
self.setStyleSheet(f"color: {color.name()};")
@property
Loading