sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #10907
[Bug 1008311] [NEW] Enhancement: Add YesNo Popup dialog
Public bug reported:
Suggest adding a standard interface for prompting the user Yes/No
questions. this would be implemented similarly to the input interface.
The following jython snippet has worked for me:
from javax.swing import JOptionPane;
def YesNoPopup(msg="",title=""):
rtn = JOptionPane.showConfirmDialog(None,msg,title,JOptionPane.YES_NO_OPTION);
if rtn == JOptionPane.YES_OPTION :
return True
else:
return False
def YesNoPopup_TEST():
if YesNoPopup("my msg","my title") is True:
print "you hit yes"
else:
print "you hit no"
** Affects: sikuli
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1008311
Title:
Enhancement: Add YesNo Popup dialog
Status in Sikuli:
New
Bug description:
Suggest adding a standard interface for prompting the user Yes/No
questions. this would be implemented similarly to the input
interface.
The following jython snippet has worked for me:
from javax.swing import JOptionPane;
def YesNoPopup(msg="",title=""):
rtn = JOptionPane.showConfirmDialog(None,msg,title,JOptionPane.YES_NO_OPTION);
if rtn == JOptionPane.YES_OPTION :
return True
else:
return False
def YesNoPopup_TEST():
if YesNoPopup("my msg","my title") is True:
print "you hit yes"
else:
print "you hit no"
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1008311/+subscriptions
Follow ups
References