[request] Add YesNo Popup dialog

Bug #1008311 reported by John Sweeney
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
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"

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

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.