Does anyone know to get the throttle function buttons and add to their functionality, in jython??
?
I can get all the buttons of all opened windows, but adding the .actionPerformed listener to them seems to override their currently function.
?
So far I found 2 other ways to do this:
1. Send an ajax call from the webThrottle page, that happens on a button click, to change a sensor or memory variable which has a jython listener attached.
2. In a jython while loop, check for changes to the buttons state, and do stuff when state is changed.
?
The above methods work fine, but it seems like there should be a more proper JMRI way to do this.