sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #22673
Re: [Question #240548]: Is there a way to use "popup" with 2 buttons?
Question #240548 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240548
Status: Open => Answered
RaiMan proposed the following answer:
The Java feature behind popup and input is JOptionPane.
To use it in Python:
import javax.swing.JOptionPane as JO
def myInput (title, msg):
ret = JO.showConfirmDialog(null, msg, title, JO.YES_NO_OPTION);
if (ret == JO.CLOSED_OPTION or ret == JO.NO_OPTION) {
return false;
}
return true;
for more variants:
http://docs.oracle.com/javase/7/docs/api/javax/swing/JOptionPane.html
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.