Closed moval0x1 closed 1 year ago
For lists being passed into Java functions, you'll need to first convert the list from Python to Java using something like java.util.ArrayList so Java can figure out the correct overloaded method to call. We are looking into improving this so that lists will automatically convert in the background when possible.
choices = askChoices(
"Options", "Select your option",
java.util.ArrayList([0, 1, 2]),
java.util.ArrayList(["Option 1", "Option 2", "Option 3"]),
)
Thank you, @dc3-tsd! It worked perfectly!
Hi, I'm trying to use askChoices with Pyhidra (python 3.11), but I always receive an error:
Code:
The same code without Pyhidra (with python 2.7) runs correctly.![image](https://github.com/dod-cyber-crime-center/pyhidra/assets/6342021/b548364e-b1a9-48b2-a1ff-35b907af33fa)
Just askChoice(s) has this problem, askInt, askString, askDouble all these work well. Can someone please help me with this issue?![image](https://github.com/dod-cyber-crime-center/pyhidra/assets/6342021/91281b5a-30e5-4e19-ae11-b752766cc138)