Commit 790d909
committed
ENH: add property precedence
Add the ability to set the precedence of properties when updating
multiple properties on once.
This adds a class-level attribute `Artist._prop_order` which is a
dictionary keyed on property names with integer values. When using
`set` or `setp` the properties will be applied in descending order by
value then by name.1 parent 0ea5fff commit 790d909
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
| |||
942 | 946 | | |
943 | 947 | | |
944 | 948 | | |
945 | | - | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
946 | 954 | | |
947 | 955 | | |
948 | 956 | | |
| |||
1461 | 1469 | | |
1462 | 1470 | | |
1463 | 1471 | | |
| 1472 | + | |
1464 | 1473 | | |
1465 | | - | |
| 1474 | + | |
1466 | 1475 | | |
1467 | 1476 | | |
1468 | 1477 | | |
| |||
0 commit comments