| | 1 | [[PageOutline(1-5, Contents)]] |
|---|
| | 2 | = Events = |
|---|
| | 3 | |
|---|
| | 4 | Events in Python are accessed in inline event handlers through the global variable ''event''. |
|---|
| | 5 | |
|---|
| | 6 | == Interface == |
|---|
| | 7 | |
|---|
| | 8 | === Properties === |
|---|
| | 9 | |
|---|
| | 10 | || '''Python property''' || '''Brief description''' || '''Equivalent C++ method''' || |
|---|
| | 11 | || ''current_element'' || The current element in the event propagation. || ''GetCurrentElement()'' || |
|---|
| | 12 | || ''target_element'' || The element the event was originally targeted at. || ''GetTargetElement()'' || |
|---|
| | 13 | || ''type'' || The type of the event. || ''GetType()'' || |
|---|
| | 14 | || ''parameters'' || Dictionary style container of all the parameters in the event || ''GetParameters()'' || |
|---|
| | 15 | |
|---|
| | 16 | === Methods === |
|---|
| | 17 | |
|---|
| | 18 | Events have a single Python method, ''StopPropagation()'', which interrupts the event propagation if allowed by the event (ie, if it is interruptible). |