(d, indent = '')
| 11 | |
| 12 | # Define a recursive function for iterating over actions |
| 13 | def iterDraw(d, indent = ''): |
| 14 | global actions |
| 15 | |
| 16 | # save the action by eventId |
| 17 | actions[d.eventId] = d |
| 18 | |
| 19 | # Iterate over the draw's children |
| 20 | for d in d.children: |
| 21 | iterDraw(d, indent + ' ') |
| 22 | |
| 23 | def sampleCode(controller): |
| 24 | # Iterate over all of the root actions, so we have names for each |