scenic.core.specifiers

Specifiers and associated objects.

Summary of Module Members

Classes

ModifyingSpecifier

Specifier providing values (or modifying) properties.

PropertyDefault

A default value, possibly with dependencies.

Specifier

Specifier providing values for properties.

Member Details

class Specifier(name, priorities, value, deps=None)[source]

Specifier providing values for properties.

Each property is set to a value, at a given priority, given dependencies.

Parameters:
  • name – The name of this specifier.

  • priorities – A dictionary mapping properties to the priority they are being specified with.

  • value – A dictionary mapping properties to the values they are being specified as.

  • deps – An iterable containing all properties that this specifier relies on.

getValuesFor(obj)[source]

Get the values specified for a given object.

class ModifyingSpecifier(name, priorities, value, modifiable_props, deps=None)[source]

Bases: Specifier

Specifier providing values (or modifying) properties.

Parameters:
  • name – The name of this specifier.

  • priorities – A dictionary mapping properties to the priority they are being specified with.

  • value – A dictionary mapping properties to the values they are being specified as.

  • modifiable_props – What properties specified by this specifier can be modified.

  • deps – An iterable containing all properties that this specifier relies on.

class PropertyDefault(requiredProperties, attributes, value)[source]

A default value, possibly with dependencies.

resolveFor(prop, overriddenDefs)[source]

Create a Specifier for a property from this default and any superclass defaults.