# Event & event=event

**URL:** <https://forum.inductiveautomation.com/t/event-event-event/8688>\
**Category:** Ignition\
**Created:** [July 8, 2014, 7:48pm UTC](https://forum.inductiveautomation.com/t/event-event-event/8688 "2014-07-08T19:48:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hans1](https://avatars.discourse-cdn.com/v4/letter/h/e68b1a/32.png) [@Hans1](https://forum.inductiveautomation.com/u/Hans1)\
**Post date:** [July 8, 2014, 7:48pm UTC](https://forum.inductiveautomation.com/t/event-event-event/8688/1 "2014-07-08T19:48:21Z")

</div>

Hi,  
Could I get a little bit of information on functions containing Event and also Event=Event?  
Here’s an example of each.

[color=#FF00FF]def[/color] refreshTablesb[/b]:  
root = fpmi.gui.getParentWindowb[/b].rootContainer  
source = app.util.getRootb[/b].getComponent([color=#8000FF]“Dest Table”[/color])  
dest = app.util.getRootb[/b].getComponent([color=#8000FF]“Source Table”[/color])  
sourceEquipmentID = source.EquipmentID  
destEquipmentID = dest.EquipmentID

[color=#FF00FF]def[/color] refreshDataSetsb[/b]:  
app.woq.updateSourceTableb[/b]  
app.woq.updateDestTableb[/b]

---

<div class="post-metadata">

**Author:** ![adamaustin](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@adamaustin](https://forum.inductiveautomation.com/u/adamaustin)\
**Post date:** [July 8, 2014, 9:16pm UTC](https://forum.inductiveautomation.com/t/event-event-event/8688/2 "2014-07-08T21:16:56Z")

</div>

Functions usually do not have scope within the event handler that triggered them (when defined within that event). So you have to pass the event variable as a parameter to the function. [See more on Python functions](http://www.tutorialspoint.com/python/python_functions.htm).
