简体   繁体   中英

Jython + JavaFx FXML ID access

I would like to know how to access FXML ID (fx:id) variables in Jython. I know that these can be accessed as follows in 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. Apparently, there is some work to do.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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