def set_register_stylesheet(obj):
 qss = get_stylesheet(obj.STYLESHEET)
 log.config.vdebug('stylesheet for {}: {}'.format(obj.__class__.__name__, qss))
 obj.setStyleSheet(qss)
 objreg.get('config').changed.connect(functools.partial(_update_stylesheet, obj))

def set_register_stylesheet ( obj ) : qss = get_stylesheet ( obj . STYLESHEET ) log . config . vdebug ( 'stylesheet for {}: {}' . format ( obj . __class__ . __name__ , qss ) ) obj . setStyleSheet ( qss ) objreg . get ( 'config' ) . changed . connect ( functools . partial ( _update_stylesheet , obj ) )
set the stylesheet for an object based on its stylesheet attribute .