← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #238787]: is it possible to create a combo box from input in sikuli

 

Question #238787 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/238787

Shawn Robertson posted a new comment:
Thanks Raiman.

i wanted to test the above values to see what happens so i pasted this
into a test script

import javax.swing.JOptionPane as JOP

pizzas = [ "Cheese", "Pepperoni", "Sausage", "Veggie" ]

val = JOP.showInputDialog(null,
        "What is your favorite pizza?",
        "Favorite Pizza",
        JOP.QUESTION_MESSAGE,
        null,
        pizzas,
        pizzas[0])

i hit play and this error appeared:

[error] Error message: Traceback (most recent call last):
 File "C:\Users\SROBER~1\AppData\Local\Temp\sikuli-tmp3292072478656519817.py", line 5, in 
 val = JOP.showInputDialog(null,
NameError: name 'null' is not defined


What is supposed to be happening?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.