Open f-lima opened 6 years ago
Jython 3 is an unsupported shot at Python 3.5. Bugs can be raised against 2.7 at bugs.jython.org, or (second best) at https://github.com/jythontools/jython .
However, I don't yet see this as a bug. Here I think the problem could be that a class imported by Jython is initialised at that point (not just declared as in a Java import). In Python generally, you probably know, an import executes the module body.
In Java, initialisation occurs when execution first handles a member of the imported class.
I don't know any FX but it appears that the TabPane class initialisation may only correctly occur after the toolkit is initialised, so this might be solved by relocating that and similar imports until after that.
Thanks. I will analise what you said and check if move the import solve it.
Copy the code below to test.py and run it
It returns an error saying:
Complete Error report:
Something is happening at import command that is generating this error. As you can see at code, I am just importing but not using the imported class.
Added: I just noticed that the same error occurs when I try import Control directly. Appears that the error are in creation of this class and classes that have Control as parent class, for any reason. By the other side, try to import classes that have Pane as parent works, even having Pane Control as his parent class. I don't know if this information helps.
Thanks for your help.
Jython version: 2.7.0
If this Issue was at wrong project please let me know where to put it. Thanks.