简体   繁体   English

Jython + JavaFx FXML ID访问

[英]Jython + JavaFx FXML ID access

I would like to know how to access FXML ID (fx:id) variables in Jython. 我想知道如何在Jython中访问FXML ID(fx:id)变量。 I know that these can be accessed as follows in Java: 我知道可以在Java中按以下方式访问它们:

@FXML private Canvas canvas

I do not think there is any pre-packaged way to do this right now, but I would love to be proven wrong. 我认为目前没有任何预包装的方法可以执行此操作,但是我希望证明自己是错误的。 The use of Java annotations inside of Jython is among the aims of jythontools/clamp , but it seems they have not gotten around to that yet. 在Jython内部使用Java批注是jythontools / clamp的目标之一,但似乎尚未解决。 Apparently, there is some work to do. 显然,有一些工作要做。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM