← Back to team overview

sikuli-driver team mailing list archive

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

 

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

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

** Tags added: fkt-general

-- 
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:
  In Progress

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