madgui.model.match module¶
Implementation of the matching system.
Classes
|
|
|
Responsible for managing a MATCH operation. |
-
class
madgui.model.match.Constraint(elem, pos, axis, value)¶ Bases:
tupleAttributes
Alias for field number 2
Alias for field number 0
Alias for field number 1
Alias for field number 3
-
property
axis¶ Alias for field number 2
-
property
elem¶ Alias for field number 0
-
property
pos¶ Alias for field number 1
-
property
value¶ Alias for field number 3
-
property
-
class
madgui.model.match.Matcher(model, rules=None)[source]¶ Bases:
objectResponsible for managing a MATCH operation.
Methods
apply()clear()Fill
variablesto the same length asconstraints.match()Match the
variablesto satisfyconstraints.reset()start()stop()Attributes
Signal<>
Signal<>
bool(x) -> bool
-
finished¶ Signal<>
-
matched¶ Signal<>
-
started= False¶
-