MCPcopy Create free account
hub / github.com/PyQt5/PyQtClient / _styleSheetStops

Method _styleSheetStops

Utils/GradientUtils.py:81–88  ·  view source on GitHub ↗
(cls, gradient)

Source from the content-addressed store, hash-verified

79
80 @classmethod
81 def _styleSheetStops(cls, gradient):
82 result = []
83
84 for stop, color in gradient.stops():
85 result.append('stop:{} rgba({}, {}, {}, {})'.format(
86 stop, color.red(), color.green(), color.blue(), color.alpha()))
87
88 return result
89
90 @classmethod
91 def _styleSheetFillName(cls, gradient):

Callers 1

styleSheetCodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected