On 3/15/2025 2:48 PM, Gareth Lee via groups.io wrote:
Could anyone point me to where the code for the Turnout Control window is (so I can copy / mod) or suggest how I would control turnouts and show their current state like this window does (as in, what functions do I need to use in the script).
The "source code" for the "Turnout control" is found at jmri.jmrit.simpleturnoutctrl.SimpleTurnoutCtrlFrame.java . This is Java code, not "Jython", so it would not be "directly" usable as a "script".
I am assuming that you know how to find that part of Java's source code. If that is not the case, let us know, and someone can provide an appropriate link the appropriate file.