← Back to team overview

sikuli-driver team mailing list archive

[Bug 1008311] Re: [request] Add YesNo Popup dialog

 

** Summary changed:

- Enhancement: Add YesNo Popup dialog
+ [request] Add YesNo Popup dialog

** Changed in: sikuli
   Importance: Undecided => Wishlist

-- 
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:
  [request] 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


References