[Sikuli-driver] [Question #240548]: Is there a way to use "popup" with 2 buttons?

2013-12-09 Thread Parn Yin
New question #240548 on Sikuli: https://answers.launchpad.net/sikuli/+question/240548 What I want now is: display a multi-lines message of settings and then ask user whether continue or not. I know popup(text[, title]) can display a dialog box with "OK" button, but it seems that it can't dis

Re: [Sikuli-driver] [Question #240548]: Is there a way to use "popup" with 2 buttons?

2013-12-09 Thread RaiMan
Question #240548 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/240548 Status: Open => Answered RaiMan proposed the following answer: The Java feature behind popup and input is JOptionPane. To use it in Python: import javax.swing.JOptionPane as JO def myInput (title, msg)

Re: [Sikuli-driver] [Question #240548]: Is there a way to use "popup" with 2 buttons?

2013-12-09 Thread RaiMan
Question #240548 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/240548 RaiMan proposed the following answer: ... again as real Python ;-) def myInput (title, msg): ret = JO.showConfirmDialog(null, msg, title, JO.YES_NO_OPTION) if ret == JO.CLOSED_OPTION or ret == JO.NO_

Re: [Sikuli-driver] [Question #240548]: Is there a way to use "popup" with 2 buttons?

2013-12-09 Thread Parn Yin
Question #240548 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/240548 Status: Answered => Solved Parn Yin confirmed that the question is solved: Thank you my mentor RaiMan! Works! as real Python :) "null" in the code above should be replaced by "None". -- You received t