sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #34609
Re: [Question #271443]: How can I input a number and accept it as an integer in sikuli?
Question #271443 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271443
Status: Open => Answered
Eugene S proposed the following answer:
this has nothing to do with Sikuli but...
input doesn't have the ability to check the input type. You will have to
process it yourself. Below is a trivial example:
while True:
if type(input("Input a number")) is int:
print "That's an integer"
break
else:
print "That's not an integer. Enter integer!"
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.