Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Aug 1, 2023
1 parent 12b663f commit e31be65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shapeout2/gui/widgets/qrangeslider.py
Expand Up @@ -77,9 +77,9 @@ def textColor(self):
return getattr(self, '__textColor', QtGui.QColor(125, 125, 125))

def setTextColor(self, color):
if type(color) == tuple and len(color) == 3:
if type(color) is tuple and len(color) == 3:
color = QtGui.QColor(color[0], color[1], color[2])
elif type(color) == int:
elif type(color) is int:
color = QtGui.QColor(color, color, color)
setattr(self, '__textColor', color)

Expand Down

0 comments on commit e31be65

Please sign in to comment.