← Back to team overview

sikuli-driver team mailing list archive

[Question #189481]: Problem with the default input text

 

New question #189481 on Sikuli:
https://answers.launchpad.net/sikuli/+question/189481

As the tutorial suggests, I can use input([text][, default]) to ask the user for data, but I don't know if I'm doing something wrong, but when I do the following line of code, it raises an exception: TypeError: input() takes at most 1 argument (2 given)

inputUpgrade = input("Are you Peter?\nChoose:'Yes' or 'No'", "Yes")

Isn't input() ready for two arguments? Why it says that I can only give him one? :S

I'm using Sikuli X-1.0r3 (r905)

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