[request] Add YesNo Popup dialog

Bug #1008311 reported by John Sweeney on 2012-06-04
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Sikuli
Critical
RaiMan

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"

RaiMan (raimund-hocke) on 2012-06-04
summary: - Enhancement: Add YesNo Popup dialog
+ [request] Add YesNo Popup dialog
Changed in sikuli:
importance: Undecided → Wishlist
RaiMan (raimund-hocke) on 2013-02-22
Changed in sikuli:
status: New → In Progress
assignee: nobody → RaiMan (raimund-hocke)
importance: Wishlist → Medium
tags: added: fkt-general
RaiMan (raimund-hocke) on 2013-05-06
Changed in sikuli:
milestone: none → x1.1
RaiMan (raimund-hocke) on 2014-09-08
Changed in sikuli:
status: In Progress → Fix Committed
importance: Medium → Critical
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions