def radial_gradient(color, color_light=50):
 if (not isinstance(color_light, QColor)):
  color_light = saturated(color, color_light)
 gradient = QRadialGradient(0.5, 0.5, 0.5)
 gradient.setColorAt(0.0, color_light)
 gradient.setColorAt(0.5, color_light)
 gradient.setColorAt(1.0, color)
 gradient.setCoordinateMode(QRadialGradient.ObjectBoundingMode)
 return gradient

def radial_gradient ( color , color_light = 50 ) : if ( not isinstance ( color_light , QColor ) ) : color_light = saturated ( color , color_light ) gradient = QRadialGradient ( 0.5 , 0.5 , 0.5 ) gradient . setColorAt ( 0.0 , color_light ) gradient . setColorAt ( 0.5 , color_light ) gradient . setColorAt ( 1.0 , color ) gradient . setCoordinateMode ( QRadialGradient . ObjectBoundingMode ) return gradient
radial_gradient radial_gradient return a radial gradient .