The ‘mouse_load_dev.py’ script fires every time you click mouse left button. The script checks if the underneath object has a property name ‘da’ or ‘ga’.
In case of the ‘da’, the given device-object ‘da’ property value is copied to the gidmenu-object’s ‘data’ property.
In case of the ‘ga’, the given function-object ‘ga’ property is getting the gidmenu-object’s ‘data’ property value.
The code is independent and new device and function objects can add dynamically.