(operator, stackingGroup, preResAmount, postResAmount)
| 21 | |
| 22 | |
| 23 | def formatOperator(operator, stackingGroup, preResAmount, postResAmount): |
| 24 | opMap = { |
| 25 | Operator.PREASSIGN: '=', |
| 26 | Operator.PREINCREASE: '+', |
| 27 | Operator.MULTIPLY: '*', |
| 28 | Operator.POSTINCREASE: '+', |
| 29 | Operator.FORCE: '\u2263' |
| 30 | } |
| 31 | prefix = '' |
| 32 | if stackingGroup is not None: |
| 33 | prefix += 's' |
| 34 | if preResAmount != postResAmount: |
| 35 | prefix += 'r' |
| 36 | return '{}{}'.format(prefix, opMap[operator]) |
| 37 | |
| 38 | |
| 39 | class ItemAffectedBy(wx.Panel): |
no outgoing calls
no test coverage detected