sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #16924
Re: [Question #223449]: yes no box
Question #223449 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/223449
Status: Open => Answered
RaiMan proposed the following answer:
with current version, you have to use a Java feature
import javax.swing.JOptionPane as JOP
answer = JOP.showConfirmDialog(None, "some informative text", "Pls. decide!", JOP.YES_NO_OPTION)
if answer == JOP.YES_OPTION:
print "it was a YES"
else:
print "it was a NO"
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.