sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #03572
Re: [Question #162596]: How to Change the popup title from sikuli to Something?
Question #162596 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/162596
Status: Open => Answered
RaiMan proposed the following answer:
--- change popup title/buttons
Not a feature currently.
--- use the user input from input()
input() returns as a string what the user has input:
answer = input("How many seconds you want me to wait?\nType a valid number only!")
print "waiting for %s seconds"%(answer)
sec = int(answer) # would work, if answer contains a valid integer number
# otherwise script will stop
to make it robust:
while True:
try:
sec = int(input("How many seconds you want me to wait?\nType a valid number only!"))
break
except:
pass # will continue looping
print "waiting for %s seconds"%(answer)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.