Dave Sand
Dave Sand
Arco, Here is a python fragment that gets the turnouts and their states for a turnout controlled signal mast. appearanceMap = self.mast.getAppearanceMap() for aspectName in appearanceMap.getAspects(): turnoutName = self.mast.getTurnoutName(aspectName) turnoutState...
Arco, What does the signal mast edit page look like? Dave Sand ----- Original message ----- From: arthkl ***@***.***> To: JMRI/JMRI ***@***.***> Cc: Dave Sand ***@***.***>, Comment ***@***.***> Subject: Re:...
Arco, I configured a test mast as you show. When I click on the mast icon, it cycles throw the aspects as shown in the signal mast table and the...
The runtime waitMsec error is the line number. Syntax errors have no clues that I can see. Here is a typical syntax error: ``` [java] 15:41:23,424 jsr223graalpython.GraalJSScriptEngine WARN - Exception...
> Well, this is ugly. Try replacing the wait line with > > ``` > self.__super__.waitMsec(10000) > ``` > > (two underscores before and after). I got this from the...
More issues. Current script: ``` import jmri as jmri import java from jmri.jmrit.automat import AbstractAutomaton exec( open("jython/jmri_bindings.py3").read() ) class AutomatExample(AbstractAutomaton) : # def __init__(self, secs): def __init__(self): self.secs = timer...
> I think we're seeing what "The created object won’t behave like a Python object but like a foreign Java object. " on that page means. Which is a mess....
The inline ConditionalNG is an interesting concept. Since the conditional is tied to the positional, if the object is used in multiple panels or multiple places in one panel, the...
> > The inline ConditionalNG is an interesting concept. Since the conditional is tied to the positional, if the object is used in multiple panels or multiple places in one...
> positionable The table also needs the position on the panel: getLocation() or getX{} and getY().